forked from forgejo/forgejo
markup: escape short wiki link (#4091)
This commit is contained in:
parent
c919b07a53
commit
23ba5c870f
2 changed files with 29 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue