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

This commit is contained in:
wylovely
2026-09-22 09:13:16 +08:00
parent e34e281461
commit 73437824be

View File

@@ -54,7 +54,7 @@
<script src="dcm/index.umd.js"></script>
<script>
var url = '${finalUrl}';
var url = '${finalUrl?js_string}';
var kkagent = '${kkagent}';
var baseUrl = '${baseUrl}'.endsWith('/') ? '${baseUrl}' : '${baseUrl}' + '/';
if (kkagent === 'true' || !url.startsWith(baseUrl)) {