From aa0a0550ca522eb6fbb78ee6550e72969980f40c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 10:35:54 +0000 Subject: [PATCH] Add configurable home background image with blur and dim controls Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com> --- src/pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.vue b/src/pages/index.vue index f73ebd8..5d5608d 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -2213,7 +2213,7 @@ export default { isSafeBackgroundUrl(url) { if (!url) return false; const trimmed = url.trim(); - if (trimmed.toLowerCase().startsWith("javascript:")) return false; + if (/^(javascript|data|vbscript):/i.test(trimmed)) return false; try { const parsed = new URL(trimmed, window.location.origin);