From b9097de9b3267b4be25625a033b574c9adbffbda Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Thu, 24 Aug 2023 16:01:04 +0200 Subject: [PATCH] Fix injection blocklist regex (#20584) --- shared/modules/provider-injection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/modules/provider-injection.js b/shared/modules/provider-injection.js index 2a71762ad..eacae5cba 100644 --- a/shared/modules/provider-injection.js +++ b/shared/modules/provider-injection.js @@ -81,7 +81,7 @@ function blockedDomainCheck() { const currentUrl = window.location.href; let currentRegex; for (let i = 0; i < blockedDomains.length; i++) { - const blockedDomain = blockedDomains[i].replace('.', '\\.'); + const blockedDomain = blockedDomains[i].replaceAll('.', '\\.'); currentRegex = new RegExp( `(?:https?:\\/\\/)(?:(?!${blockedDomain}).)*$`, 'u',