Skip to content

Commit f6d89aa

Browse files
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>
1 parent 644f1d9 commit f6d89aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/global.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ document.addEventListener("astro:page-load", () => {
116116
Typed.length === PanicKeys.length &&
117117
PanicKeys.every((key, index) => key === Typed[index])
118118
) {
119-
window.location.href = PanicLink;
119+
window.location.href = encodeURIComponent(PanicLink);
120120
Typed = [];
121121
}
122122
});

0 commit comments

Comments
 (0)