瀏覽代碼

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

tags/v1.0.0
Bwko 7 年之前
父節點
當前提交
abcd39f7d5
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      models/wiki.go

+ 1
- 0
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)
}


Loading…
取消
儲存