Skip to content

Commit

Permalink
Fix code scanning alert no. 4: DOM text reinterpreted as HTML
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
xbubbo and github-advanced-security[bot] authored Nov 22, 2024
1 parent 644f1d9 commit f6d89aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
});
Expand Down

0 comments on commit f6d89aa

Please sign in to comment.