From 27d5b7f2a03d00eea6242ed253f3d628629c2694 Mon Sep 17 00:00:00 2001 From: Bwko Date: Fri, 9 Dec 2016 22:36:31 +0100 Subject: [PATCH] In the wiki title replace tab with a space --- models/wiki.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/wiki.go b/models/wiki.go index 89da4571dbfec..1a7ad0e489f08 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) }