mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	In the wiki title replace tab with a space (#371)
This commit is contained in:
		@@ -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)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user