forked from 0x2620/pandora
replace all % and &
This commit is contained in:
parent
4dbb5e3c51
commit
49356d2f7a
1 changed files with 2 additions and 2 deletions
|
@ -1111,8 +1111,8 @@ pandora.escapeQueryValue = function(value) {
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
.replace(/%/, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/&/, '%26')
|
.replace(/&/g, '%26')
|
||||||
.replace(/_/g, '%09')
|
.replace(/_/g, '%09')
|
||||||
.replace(/\s/g, '_')
|
.replace(/\s/g, '_')
|
||||||
.replace(/</g, '%0E')
|
.replace(/</g, '%0E')
|
||||||
|
|
Loading…
Reference in a new issue