Decided not to escape. :)
This commit is contained in:
parent
8f8baacbf9
commit
e73f3ee8fd
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user