Skip to content

Commit

Permalink
FIX: uri decode fix, CRS at 95%+
Browse files Browse the repository at this point in the history
  • Loading branch information
jptosso committed Aug 27, 2021
1 parent 3e98553 commit fc2e9d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/url.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package utils

import (
"net/url"
"strings"
)

Expand All @@ -20,6 +21,14 @@ func ParseQuery(query string, separator string) map[string][]string {
if i := strings.Index(key, "="); i >= 0 {
key, value = key[:i], key[i+1:]
}
key, err := url.QueryUnescape(key)
if err != nil {
continue
}
value, err = url.QueryUnescape(value)
if err != nil {
continue
}
m[key] = append(m[key], value)
}
return m
Expand Down

0 comments on commit fc2e9d7

Please sign in to comment.