Merge pull request #559 from trheyi/main

Fix URL decoding in processUpload function
This commit is contained in:
Max 2024-01-19 17:58:38 +08:00 committed by GitHub
commit 2eefdef77b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -120,8 +120,8 @@ func processUpload(process *gouProcess.Process) interface{} {
process.ValidateArgNums(4)
form := MustGet(process)
xpath := process.ArgsString(1)
method := process.ArgsString(2)
xpath, _ := url.QueryUnescape(process.ArgsString(1))
method, _ := url.QueryUnescape(process.ArgsString(2))
key := fmt.Sprintf("%s.$%s", xpath, method)
// get cloud props

View file

@ -105,8 +105,8 @@ func processUpload(process *gouProcess.Process) interface{} {
process.ValidateArgNums(4)
tab := MustGet(process)
xpath := process.ArgsString(1)
method := process.ArgsString(2)
xpath, _ := url.QueryUnescape(process.ArgsString(1))
method, _ := url.QueryUnescape(process.ArgsString(2))
key := fmt.Sprintf("%s.$%s", xpath, method)
// get cloud props