mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 20:20:30 +08:00
[wopi] Replace vulnerable "<%-" with "<%="; Fix bug 80768
This commit is contained in:
@ -195,7 +195,7 @@ button:disabled, button[disabled]{
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input id="statusHandler" type="hidden" value="<%= statusHandler || '' %>">
|
||||
<script type="text/javascript" language="javascript">
|
||||
|
||||
function redirect(url) {
|
||||
@ -253,7 +253,7 @@ button:disabled, button[disabled]{
|
||||
|
||||
var convertFile = function () {
|
||||
|
||||
let statusHandler = <%- JSON.stringify(statusHandler) %>;
|
||||
let statusHandler = document.getElementById('statusHandler').value || null;
|
||||
|
||||
if(!statusHandler) {
|
||||
error();
|
||||
|
||||
Reference in New Issue
Block a user