diff --git a/src/lib/global.ts b/src/lib/global.ts index 63243b3..695e42c 100644 --- a/src/lib/global.ts +++ b/src/lib/global.ts @@ -94,6 +94,7 @@ document.addEventListener("astro:page-load", () => { let PanicLink = localStorage.getItem("link") || ""; try { PanicLink = new URL(PanicLink).toString(); + PanicLink = DOMPurify.sanitize(PanicLink); } catch (e) { PanicLink = ""; }