From f6d89aa098b341c011b84dcfa6b1ea6c43479a6c Mon Sep 17 00:00:00 2001 From: Bubbo <85169821+xbubbo@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:34:54 -0500 Subject: [PATCH] Fix code scanning alert no. 4: DOM text reinterpreted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/lib/global.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/global.ts b/src/lib/global.ts index 4a9c0c5..1b997ca 100644 --- a/src/lib/global.ts +++ b/src/lib/global.ts @@ -116,7 +116,7 @@ document.addEventListener("astro:page-load", () => { Typed.length === PanicKeys.length && PanicKeys.every((key, index) => key === Typed[index]) ) { - window.location.href = PanicLink; + window.location.href = encodeURIComponent(PanicLink); Typed = []; } });