Ox.URL: encode '?' in item ids

This commit is contained in:
rolux 2014-02-18 06:05:17 +00:00
parent b43208de28
commit 4ab7a24075

View file

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