@@ -711,7 +711,7 @@ export const composeHandler = ({
711
711
} else {
712
712
fnLiteral +=
713
713
'if(c.qi!==-1){' +
714
- `let url = '&' + decodeURIComponent(c.url.slice(c.qi + 1))\n`
714
+ `let url = '&' + decodeURIComponent(c.url.slice(c.qi + 1).replaceAll('+', ' ') )\n`
715
715
716
716
let index = 0
717
717
for ( const {
@@ -739,8 +739,8 @@ export const composeHandler = ({
739
739
`else\n` +
740
740
`a${ index } +=','\n` +
741
741
`let temp\n` +
742
- `if(memory===-1)temp=decodeURIComponent(url.slice(start).replace(/\\+|%20/g,' ') )\n` +
743
- `else temp=decodeURIComponent(url.slice(start, memory).replace(/\\+|%20/g,' ') )\n` +
742
+ `if(memory===-1)temp=decodeURIComponent(url.slice(start))\n` +
743
+ `else temp=decodeURIComponent(url.slice(start, memory))\n` +
744
744
`const charCode = temp.charCodeAt(0)\n` +
745
745
`if(charCode !== 91 && charCode !== 123)\n` +
746
746
`temp='"'+temp+'"'\n` +
@@ -763,10 +763,10 @@ export const composeHandler = ({
763
763
`if(a${ index } ===undefined)` +
764
764
`a${ index } =[]\n` +
765
765
`if(memory===-1){` +
766
- `a${ index } .push(decodeURIComponent(url.slice(start)).replace(/\\+|%20/g,' ') )\n` +
766
+ `a${ index } .push(decodeURIComponent(url.slice(start)))\n` +
767
767
`break` +
768
768
`}` +
769
- `else a${ index } .push(decodeURIComponent(url.slice(start, memory)).replace(/\\+|%20/g,' ') )\n` +
769
+ `else a${ index } .push(decodeURIComponent(url.slice(start, memory)))\n` +
770
770
`memory=url.indexOf('&${ key } =',memory)\n` +
771
771
`if(memory===-1) break\n` +
772
772
`}`
@@ -776,8 +776,8 @@ export const composeHandler = ({
776
776
`if(memory!==-1){` +
777
777
`const start=memory+${ key . length + 2 } \n` +
778
778
`memory=url.indexOf('&',start)\n` +
779
- `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start).replace(/\\+|%20/g,' ') )` +
780
- `else a${ index } =decodeURIComponent(url.slice(start,memory).replace(/\\+|%20/g,' ') )` +
779
+ `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start))` +
780
+ `else a${ index } =decodeURIComponent(url.slice(start,memory))` +
781
781
`if(a${ index } !==undefined)` +
782
782
`try{` +
783
783
`a${ index } =JSON.parse(a${ index } )` +
@@ -790,9 +790,9 @@ export const composeHandler = ({
790
790
`if(memory!==-1){` +
791
791
`const start=memory+${ key . length + 2 } \n` +
792
792
`memory=url.indexOf('&',start)\n` +
793
- `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start).replace(/\\+|%20/g,' ') )\n` +
793
+ `if(memory===-1)a${ index } =decodeURIComponent(url.slice(start))\n` +
794
794
`else{` +
795
- `a${ index } =decodeURIComponent(url.slice(start,memory).replace(/\\+|%20/g,' ') )`
795
+ `a${ index } =decodeURIComponent(url.slice(start,memory))`
796
796
797
797
if ( anyOf )
798
798
fnLiteral +=
@@ -805,8 +805,8 @@ export const composeHandler = ({
805
805
`if(first)first=false\n` +
806
806
`else deepMemory = url.indexOf('&', start)\n` +
807
807
`let value\n` +
808
- `if(deepMemory===-1)value=decodeURIComponent(url.slice(start).replace(/\\+|%20/g,' ') )\n` +
809
- `else value=decodeURIComponent(url.slice(start, deepMemory).replace(/\\+|%20/g,' ') )\n` +
808
+ `if(deepMemory===-1)value=decodeURIComponent(url.slice(start))\n` +
809
+ `else value=decodeURIComponent(url.slice(start, deepMemory))\n` +
810
810
`const vStart=value.charCodeAt(0)\n` +
811
811
`const vEnd=value.charCodeAt(value.length - 1)\n` +
812
812
`if((vStart===91&&vEnd===93)||(vStart===123&&vEnd===125))\n` +
0 commit comments