mirror of
https://github.com/go-gitea/gitea
synced 2025-07-12 13:37:20 +00:00
markup: escape short wiki link (#4091)
This commit is contained in:
committed by
Lunny Xiao
parent
c919b07a53
commit
23ba5c870f
@ -469,6 +469,9 @@ func shortLinkProcessorFull(ctx *postProcessCtx, node *html.Node, noLink bool) {
|
||||
} else {
|
||||
link = strings.Replace(link, " ", "-", -1)
|
||||
}
|
||||
if !strings.Contains(link, "/") {
|
||||
link = url.PathEscape(link)
|
||||
}
|
||||
}
|
||||
urlPrefix := ctx.urlPrefix
|
||||
if image {
|
||||
|
Reference in New Issue
Block a user