fix(#790): escape file URL in officeweb.ftl with ?js_string to prevent SyntaxError on apostrophe

This commit is contained in:
wylovely
2026-09-22 09:13:32 +08:00
parent e8f1fff879
commit f47e4b8a96

View File

@@ -157,7 +157,7 @@
window.location.href=test;
}
var url = '${finalUrl}';
var url = '${finalUrl?js_string}';
var kkagent = '${kkagent}';
var baseUrl = '${baseUrl}'.endsWith('/') ? '${baseUrl}' : '${baseUrl}' + '/';
if (kkagent === 'true' || !url.startsWith(baseUrl)) {