mirror of https://github.com/gorhill/uBlock.git
Ensure `urlskip=` redirects only to `https:`
This commit is contained in:
parent
94ca27acd1
commit
32f27c5131
|
@ -5508,7 +5508,8 @@ function urlSkip(directive, url, steps) {
|
||||||
// Unknown directive
|
// Unknown directive
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void new URL(urlout);
|
const urlfinal = new URL(urlout);
|
||||||
|
if ( urlfinal.protocol !== 'https:' ) { return; }
|
||||||
return urlout;
|
return urlout;
|
||||||
} catch(x) {
|
} catch(x) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue