Skip to content

Commit 32f27c5

Browse files
committed
Ensure urlskip= redirects only to https:
1 parent 94ca27a commit 32f27c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/static-net-filtering.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5508,7 +5508,8 @@ function urlSkip(directive, url, steps) {
55085508
// Unknown directive
55095509
return;
55105510
}
5511-
void new URL(urlout);
5511+
const urlfinal = new URL(urlout);
5512+
if ( urlfinal.protocol !== 'https:' ) { return; }
55125513
return urlout;
55135514
} catch(x) {
55145515
}

0 commit comments

Comments
 (0)