mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-20 13:03:56 +02:00
this fixes #1341
This commit is contained in:
parent
062eed9413
commit
a89f908a16
1 changed files with 10 additions and 2 deletions
|
@ -192,6 +192,14 @@ uDom.nodeFromId('why').textContent = details.fs;
|
|||
return li;
|
||||
};
|
||||
|
||||
var safeDecodeURIComponent = function(s) {
|
||||
try {
|
||||
s = decodeURIComponent(s);
|
||||
} catch (ex) {
|
||||
}
|
||||
return s;
|
||||
};
|
||||
|
||||
var renderParams = function(parentNode, rawURL) {
|
||||
var a = document.createElement('a');
|
||||
a.href = rawURL;
|
||||
|
@ -214,8 +222,8 @@ uDom.nodeFromId('why').textContent = details.fs;
|
|||
if ( pos === -1 ) {
|
||||
pos = param.length;
|
||||
}
|
||||
name = decodeURIComponent(param.slice(0, pos));
|
||||
value = decodeURIComponent(param.slice(pos + 1));
|
||||
name = safeDecodeURIComponent(param.slice(0, pos));
|
||||
value = safeDecodeURIComponent(param.slice(pos + 1));
|
||||
li = liFromParam(name, value);
|
||||
if ( reURL.test(value) ) {
|
||||
ul = document.createElement('ul');
|
||||
|
|
Loading…
Reference in a new issue