fix #1835 (in URLs, encode # in edit/text name or query)

This commit is contained in:
rlx 2013-08-26 16:47:21 +00:00
parent d524d16508
commit 3c45a928c3

View file

@ -566,8 +566,8 @@ Ox.URL = function(options) {
return Ox.decodeURIComponent(value).replace(/_/g, ' ').replace(Ox.char(9), '_');
}
function encodeValue(value, encodeSlash) {
var chars = (encodeSlash ? '/' : '') + '&|()=*%',
function encodeValue(value, isItem) {
var chars = isItem ? '/#%' : '#&|()=*%',
ret = '';
value.toString().split('').forEach(function(char) {
var index = chars.indexOf(char);