diff options
author | Joe Chen <jc@unknwon.io> | 2022-01-13 10:13:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 10:13:36 +0800 |
commit | 5e43fa92ff5d7aa53eec1c7e6756a9adb34a6d45 (patch) | |
tree | 3c8071b354859f550eb5d9debadb918308a5ce8f | |
parent | 539e2a8b4274ba201d073e91f1cc1d0f303cebc2 (diff) |
markup: use default link formation when no format in metas (#6723)
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | internal/markup/markup.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c915be..3e42bc16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,8 +21,8 @@ All notable changes to Gogs are documented in this file. ### Fixed - Add `X-Frame-Options` header to prevent Clickjacking. [#6409](https://github.com/gogs/gogs/issues/6409) -- [Security] Potential SSRF attack by CRLF injection via repository migration. [#6413](https://github.com/gogs/gogs/issues/6413) - +- _Regression:_ Fixed smart links for issues stops rendering. [#6506](https://github.com/gogs/gogs/issues/6506) +- _Security:_ Potential SSRF attack by CRLF injection via repository migration. [#6413](https://github.com/gogs/gogs/issues/6413) ### Removed diff --git a/internal/markup/markup.go b/internal/markup/markup.go index 788708e7..ae19ddeb 100644 --- a/internal/markup/markup.go +++ b/internal/markup/markup.go @@ -101,7 +101,7 @@ func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string, metas map[string m = m[1:] } var link string - if metas == nil { + if metas == nil || metas["format"] == "" { link = fmt.Sprintf(`<a href="%s/issues/%s">%s</a>`, urlPrefix, m[1:], m) } else { // Support for external issue tracker |