From e34e281461ed30f21dcbe0f7a2313727a5cd5f4e Mon Sep 17 00:00:00 2001 From: wylovely <2016688030@qq.com> Date: Tue, 22 Sep 2026 09:13:14 +0800 Subject: [PATCH] fix(#790): escape file URL in csv.ftl with ?js_string to prevent SyntaxError on apostrophe --- server/src/main/resources/web/csv.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/resources/web/csv.ftl b/server/src/main/resources/web/csv.ftl index 47f7bbbe..549dc0fd 100644 --- a/server/src/main/resources/web/csv.ftl +++ b/server/src/main/resources/web/csv.ftl @@ -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)) {