Commit 54355d8f authored by Pedro Nasser's avatar Pedro Nasser

replace strings.Split for SplitN

parent e486c9c6
......@@ -21,7 +21,7 @@ func To(fs http.FileSystem, r *http.Request, to string, replacer httpserver.Repl
query := ""
for _, v := range tos {
t = replacer.Replace(v)
tparts := strings.Split(t, "?")
tparts := strings.SplitN(t, "?", 2)
t = path.Clean(tparts[0])
if len(tparts) > 1 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment