forked from 0x2620/pandora
escape &
This commit is contained in:
parent
cabcbeb35d
commit
6118bf3c3a
1 changed files with 3 additions and 1 deletions
|
@ -1110,7 +1110,9 @@ pandora.escapeQueryValue = function(value) {
|
||||||
if (!Ox.isString(value)) {
|
if (!Ox.isString(value)) {
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
}
|
}
|
||||||
return value.replace(/%/, '%25')
|
return value
|
||||||
|
.replace(/%/, '%25')
|
||||||
|
.replace(/&/, '%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