mirror of
https://github.com/go-gitea/gitea
synced 2025-08-13 13:08:19 +00:00
This commit is contained in:
committed by
Lunny Xiao
parent
c746f820ab
commit
00ad4745ba
@@ -405,6 +405,9 @@ func RenderShortLinks(rawBytes []byte, urlPrefix string, noLink bool, isWikiMark
|
||||
} else {
|
||||
link = strings.Replace(link, " ", "-", -1)
|
||||
}
|
||||
if !strings.Contains(link, "/") {
|
||||
link = url.PathEscape(link)
|
||||
}
|
||||
}
|
||||
if image {
|
||||
if !absoluteLink {
|
||||
|
Reference in New Issue
Block a user