_do_ encode '%' in values (to allow searching for the literal string '%5F')

This commit is contained in:
rlx 2013-08-14 19:32:29 +00:00
parent 5afbd57823
commit b0280295d2

View file

@ -568,7 +568,7 @@ Ox.URL = function(options) {
function encodeValue(value) { function encodeValue(value) {
// var chars = '/&|()=*:'; // var chars = '/&|()=*:';
var chars = '&|()=*', var chars = '&|()=*%',
ret = ''; ret = '';
value.toString().split('').forEach(function(char) { value.toString().split('').forEach(function(char) {
var index = chars.indexOf(char); var index = chars.indexOf(char);