aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/wiki.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/wiki.go b/models/wiki.go
index 89da4571db..1a7ad0e489 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -33,6 +33,7 @@ func ToWikiPageURL(name string) string {
// that are not belong to wiki repository.
func ToWikiPageName(urlString string) string {
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
+ name = strings.Replace(name, "\t", " ", -1)
return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1)
}