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

This commit is contained in:
wylovely
2026-09-22 09:13:14 +08:00
parent b81cb91d67
commit e34e281461

View File

@@ -35,7 +35,7 @@ var process_wb = (function() {
if(typeof console !== 'undefined') console.log("output", new Date());
};
})();
var url = '${finalUrl}';
var url = '${finalUrl?js_string}';
var kkagent = '${kkagent}';
var baseUrl = '${baseUrl}'.endsWith('/') ? '${baseUrl}' : '${baseUrl}' + '/';
if (kkagent === 'true' || !url.startsWith(baseUrl)) {