Fixed meta-refresh emulation getting confused by quoted URLs.

This commit is contained in:
hackademix 2018-07-12 02:10:22 +02:00
parent a9e1051018
commit 66adf2720e
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function onScriptDisabled() {
let [secs, url] = content.split(/\s*;\s*url\s*=\s*/i); let [secs, url] = content.split(/\s*;\s*url\s*=\s*/i);
if (url) { if (url) {
try { try {
let urlObj = new URL(url); let urlObj = new URL(url.replace(/^(['"]?)(.+?)\1$/, '$2'));
if (!/^https?:/.test(urlObj.protocol)) { if (!/^https?:/.test(urlObj.protocol)) {
continue; continue;
} }