From cb6daac2cd8069d993b1d2cdfe3295460c007e81 Mon Sep 17 00:00:00 2001 From: BretRen Date: Mon, 20 Jul 2026 00:13:21 -0700 Subject: [PATCH] enforce noopener & noreferrer --- src/lib/components/modal.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/components/modal.svelte b/src/lib/components/modal.svelte index c3a8fd901..9cb5cba61 100644 --- a/src/lib/components/modal.svelte +++ b/src/lib/components/modal.svelte @@ -54,8 +54,8 @@ }}> {@html DOMPurify.sanitize(error, { ALLOWED_TAGS: ['a'], - ALLOWED_ATTR: ['href', 'target', 'rel'] - })} + ALLOWED_ATTR: ['href'] + }).replace(/ {/if} @@ -80,7 +80,8 @@ opacity: 0; animation: none; } - + /* Svelte cannot see the DOM rendered by `{@html}`, resulting in a false positive.*/ + /* svelte-ignore css-unused-selector */ .alert-error :global(a) { color: inherit; text-decoration: underline;