Browse Source

In the wiki title replace tab with a space (#371)

for-closed-social
Bwko 8 years ago
committed by Lunny Xiao
parent
commit
abcd39f7d5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/wiki.go

+ 1
- 0
models/wiki.go View File

@ -33,6 +33,7 @@ func ToWikiPageURL(name string) string {
// that are not belong to wiki repository. // that are not belong to wiki repository.
func ToWikiPageName(urlString string) string { func ToWikiPageName(urlString string) string {
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1)) name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
name = strings.Replace(name, "\t", " ", -1)
return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1) return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1)
} }

Loading…
Cancel
Save