1
0

Decided not to escape. :)

This commit is contained in:
Alexander Andreev 2022-06-28 01:59:22 +04:00
parent 8f8baacbf9
commit e73f3ee8fd
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -1,7 +1,6 @@
package files package files
import ( import (
"net/url"
"strings" "strings"
) )
@ -13,7 +12,7 @@ func CurrentPath(path string) (curPath string) {
sb.WriteString("/<a href=\"/") sb.WriteString("/<a href=\"/")
sb.WriteString(strings.Join(parts[:i+1], "/")) sb.WriteString(strings.Join(parts[:i+1], "/"))
sb.WriteString("/\">") sb.WriteString("/\">")
sb.WriteString(url.PathEscape(part)) sb.WriteString(part)
sb.WriteString("</a>") sb.WriteString("</a>")
curPath += sb.String() curPath += sb.String()
} }