mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-11-13 23:00:40 +00:00
fix(#790): escape file URL in csv.ftl with ?js_string to prevent SyntaxError on apostrophe
This commit is contained in:
@@ -35,7 +35,7 @@ var process_wb = (function() {
|
|||||||
if(typeof console !== 'undefined') console.log("output", new Date());
|
if(typeof console !== 'undefined') console.log("output", new Date());
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
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