fix(backend): remove tab chars in url before parse

This commit is contained in:
Alex Kaminskii 2022-06-23 15:56:11 +02:00
parent c2f93c6c42
commit 71f5f3a797

View file

@ -10,6 +10,7 @@ func DiscardURLQuery(url string) string {
}
func GetURLParts(rawURL string) (string, string, string, error) {
rawURL = strings.Replace(rawURL, "\t", "", -1) // Other chars?
u, err := _url.Parse(rawURL)
if err != nil {
return "", "", "", err