Ox.URL: encode '?' in query too

This commit is contained in:
rolux 2014-02-18 06:12:44 +00:00
parent 4ab7a24075
commit 36bb548879

View file

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