fix #1835 (in URLs, encode # in edit/text name or query)
This commit is contained in:
parent
d524d16508
commit
3c45a928c3
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue