summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2018-07-12 02:10:22 +0200
committerhackademix2018-07-12 02:10:22 +0200
commit66adf2720e6d24ee9dc7958546d458338d8e8737 (patch)
treea4f8020ff41bff4eefa028b2d5ad0ae6f9bfefee /src
parenta9e105101868f70285af8b161e528769dd6da044 (diff)
downloadnoscript-66adf2720e6d24ee9dc7958546d458338d8e8737.tar.gz
noscript-66adf2720e6d24ee9dc7958546d458338d8e8737.tar.xz
noscript-66adf2720e6d24ee9dc7958546d458338d8e8737.zip
Fixed meta-refresh emulation getting confused by quoted URLs.
Diffstat (limited to 'src')
-rw-r--r--src/content/onScriptDisabled.js2
1 files changed, 1 insertions, 1 deletions
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;
}