Skip to content

Commit

Permalink
Ensure urlskip= redirects only to https:
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Oct 16, 2024
1 parent 94ca27a commit 32f27c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/static-net-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -5508,7 +5508,8 @@ function urlSkip(directive, url, steps) {
// Unknown directive
return;
}
void new URL(urlout);
const urlfinal = new URL(urlout);
if ( urlfinal.protocol !== 'https:' ) { return; }
return urlout;
} catch(x) {
}
Expand Down

0 comments on commit 32f27c5

Please sign in to comment.