Skip to content

Commit

Permalink
Merge pull request #161 from UseInterstellar/alert-autofix-4
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 4: DOM text reinterpreted as HTML
  • Loading branch information
xbubbo authored Nov 22, 2024
2 parents 644f1d9 + f6d89aa commit 6fb06e0
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 6fb06e0

Please sign in to comment.