diff options
author | Bwko <bouwko@gmail.com> | 2016-12-11 04:01:26 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2016-12-11 11:01:26 +0800 |
commit | abcd39f7d52f6a9498b5f09a1d90c87da7c66909 (patch) | |
tree | dbcbcccd8990aa01ebf24c212ef1b263240ea1f3 /models/wiki.go | |
parent | cbcb4361d5fa554b707b28055aed33629a34d60c (diff) | |
download | gitea-abcd39f7d52f6a9498b5f09a1d90c87da7c66909.tar.gz gitea-abcd39f7d52f6a9498b5f09a1d90c87da7c66909.zip |
In the wiki title replace tab with a space (#371)
Diffstat (limited to 'models/wiki.go')
-rw-r--r-- | models/wiki.go | 1 |
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) } |