mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-11-12 14:20:40 +00:00
fix(#790): escape file URL in officeweb.ftl with ?js_string to prevent SyntaxError on apostrophe
This commit is contained in:
@@ -157,7 +157,7 @@
|
|||||||
window.location.href=test;
|
window.location.href=test;
|
||||||
}
|
}
|
||||||
|
|
||||||
var url = '${finalUrl}';
|
var url = '${finalUrl?js_string}';
|
||||||
var kkagent = '${kkagent}';
|
var kkagent = '${kkagent}';
|
||||||
var baseUrl = '${baseUrl}'.endsWith('/') ? '${baseUrl}' : '${baseUrl}' + '/';
|
var baseUrl = '${baseUrl}'.endsWith('/') ? '${baseUrl}' : '${baseUrl}' + '/';
|
||||||
if (kkagent === 'true' || !url.startsWith(baseUrl)) {
|
if (kkagent === 'true' || !url.startsWith(baseUrl)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user