1
0
Fork 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
1 changed files with 1 additions and 2 deletions

View File

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