mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
reworded comment
This commit is contained in:
parent
6e81771783
commit
d516e576ff
1 changed files with 3 additions and 3 deletions
|
@ -241,9 +241,9 @@ vAPI.tabs.registerListeners = function() {
|
|||
var reGoodForWebRequestAPI = /^https?:\/\//;
|
||||
|
||||
// https://forums.lanik.us/viewtopic.php?f=62&t=32826
|
||||
// Chromium-based browsers: sanitize target URL. I've seen
|
||||
// data: URI-based with newline characters, possibly as a way of
|
||||
// evading filters. There should be no whitespaces in a data: URI's
|
||||
// Chromium-based browsers: sanitize target URL. I've seen data: URI with
|
||||
// newline characters in standard fields, possibly as a way of evading
|
||||
// filters. As per spec, there should be no whitespaces in a data: URI's
|
||||
// standard fields.
|
||||
var sanitizeURL = function(url) {
|
||||
if ( url.startsWith('data:') === false ) { return url; }
|
||||
|
|
Loading…
Reference in a new issue