fix: target sanitation

This commit is contained in:
Jacky Zhao 2022-04-02 17:43:20 -07:00
parent 5d94c306e6
commit b724e4aeca

View File

@ -27,7 +27,8 @@ func processTarget(source string) string {
res, _ = url.PathUnescape(res) res, _ = url.PathUnescape(res)
res = strings.Split(res, "#")[0] res = strings.Split(res, "#")[0]
res = strings.TrimSpace(res) res = strings.TrimSpace(res)
return UnicodeSanitize(res) res = UnicodeSanitize(res)
return strings.ReplaceAll(url.PathEscape(res), "%2F", "/")
} }
func processSource(source string) string { func processSource(source string) string {