Merge pull request #559 from trheyi/main
Fix URL decoding in processUpload function
This commit is contained in:
commit
2eefdef77b
2 changed files with 4 additions and 4 deletions
|
|
@ -120,8 +120,8 @@ func processUpload(process *gouProcess.Process) interface{} {
|
||||||
|
|
||||||
process.ValidateArgNums(4)
|
process.ValidateArgNums(4)
|
||||||
form := MustGet(process)
|
form := MustGet(process)
|
||||||
xpath := process.ArgsString(1)
|
xpath, _ := url.QueryUnescape(process.ArgsString(1))
|
||||||
method := process.ArgsString(2)
|
method, _ := url.QueryUnescape(process.ArgsString(2))
|
||||||
key := fmt.Sprintf("%s.$%s", xpath, method)
|
key := fmt.Sprintf("%s.$%s", xpath, method)
|
||||||
|
|
||||||
// get cloud props
|
// get cloud props
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ func processUpload(process *gouProcess.Process) interface{} {
|
||||||
|
|
||||||
process.ValidateArgNums(4)
|
process.ValidateArgNums(4)
|
||||||
tab := MustGet(process)
|
tab := MustGet(process)
|
||||||
xpath := process.ArgsString(1)
|
xpath, _ := url.QueryUnescape(process.ArgsString(1))
|
||||||
method := process.ArgsString(2)
|
method, _ := url.QueryUnescape(process.ArgsString(2))
|
||||||
key := fmt.Sprintf("%s.$%s", xpath, method)
|
key := fmt.Sprintf("%s.$%s", xpath, method)
|
||||||
|
|
||||||
// get cloud props
|
// get cloud props
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue