mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 08:09:59 +01:00
markup: use default link formation when no format in metas (#6723)
This commit is contained in:
@@ -21,8 +21,8 @@ All notable changes to Gogs are documented in this file.
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Add `X-Frame-Options` header to prevent Clickjacking. [#6409](https://github.com/gogs/gogs/issues/6409)
|
- 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
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string, metas map[string
|
|||||||
m = m[1:]
|
m = m[1:]
|
||||||
}
|
}
|
||||||
var link string
|
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)
|
link = fmt.Sprintf(`<a href="%s/issues/%s">%s</a>`, urlPrefix, m[1:], m)
|
||||||
} else {
|
} else {
|
||||||
// Support for external issue tracker
|
// Support for external issue tracker
|
||||||
|
|||||||
Reference in New Issue
Block a user