change query encoding to old style meta
This commit is contained in:
parent
52d4015114
commit
5677d70449
2 changed files with 4 additions and 5 deletions
|
|
@ -403,7 +403,6 @@
|
|||
let opt = {}, kv, kva;
|
||||
// handle kiri legacy and proper url encoding better
|
||||
ov.replace(/&/g,',').split(',').forEach(function(el) {
|
||||
// el = el.replace(/=/g,':');
|
||||
kv = decodeURIComponent(el).split(':');
|
||||
if (kv.length === 2) {
|
||||
kva = opt[kv[0]] = opt[kv[0]] || [];
|
||||
|
|
@ -418,9 +417,9 @@
|
|||
Object.keys(opt).forEach(key => {
|
||||
if (key === 'ver') return;
|
||||
let val = opt[key];
|
||||
out.push(encodeURIComponent(key) + "=" + encodeURIComponent(val));
|
||||
out.push(encodeURIComponent(key) + ":" + encodeURIComponent(val));
|
||||
});
|
||||
return out.length ? '?' + out.join('&') : '';
|
||||
return out.length ? '?' + out.join(',') : '';
|
||||
}
|
||||
|
||||
function ajax(url, fn, rt, po, hd) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue