replace all % and &

This commit is contained in:
j 2021-11-14 13:41:49 +00:00
parent 4dbb5e3c51
commit 49356d2f7a

View file

@ -1111,8 +1111,8 @@ pandora.escapeQueryValue = function(value) {
value = value.toString();
}
return value
.replace(/%/, '%25')
.replace(/&/, '%26')
.replace(/%/g, '%25')
.replace(/&/g, '%26')
.replace(/_/g, '%09')
.replace(/\s/g, '_')
.replace(/</g, '%0E')