From fc2e9d7a37b1d9229e6bcd8aecfc36469680ca10 Mon Sep 17 00:00:00 2001 From: Juan Pablo Tosso Date: Thu, 26 Aug 2021 20:24:32 -0400 Subject: [PATCH] FIX: uri decode fix, CRS at 95%+ --- utils/url.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/url.go b/utils/url.go index 6ef2cc95f..e5911dde7 100644 --- a/utils/url.go +++ b/utils/url.go @@ -1,6 +1,7 @@ package utils import ( + "net/url" "strings" ) @@ -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