diff options
author | hackademix | 2018-07-12 02:10:22 +0200 |
---|---|---|
committer | hackademix | 2018-07-12 02:10:22 +0200 |
commit | 66adf2720e6d24ee9dc7958546d458338d8e8737 (patch) | |
tree | a4f8020ff41bff4eefa028b2d5ad0ae6f9bfefee /src/content | |
parent | a9e105101868f70285af8b161e528769dd6da044 (diff) | |
download | noscript-66adf2720e6d24ee9dc7958546d458338d8e8737.tar.gz noscript-66adf2720e6d24ee9dc7958546d458338d8e8737.tar.xz noscript-66adf2720e6d24ee9dc7958546d458338d8e8737.zip |
Fixed meta-refresh emulation getting confused by quoted URLs.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/onScriptDisabled.js | 2 |
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; } |