From 66adf2720e6d24ee9dc7958546d458338d8e8737 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 12 Jul 2018 02:10:22 +0200 Subject: Fixed meta-refresh emulation getting confused by quoted URLs. --- src/content/onScriptDisabled.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js index a3a0ffe..a36707a 100644 --- a/src/content/onScriptDisabled.js +++ b/src/content/onScriptDisabled.js @@ -12,7 +12,7 @@ function onScriptDisabled() { let [secs, url] = content.split(/\s*;\s*url\s*=\s*/i); if (url) { try { - let urlObj = new URL(url); + let urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2')); if (!/^https?:/.test(urlObj.protocol)) { continue; } -- cgit v1.2.3