diff options
author | Giteabot <teabot@gitea.io> | 2023-10-24 09:39:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 09:39:13 +0800 |
commit | cb9e10f97144248b512f8a528c6d443e9231651b (patch) | |
tree | 910176b01c5998822dfd3455a1c969b100ca4789 | |
parent | 5087de1a5cea9789d5c89f679d31b4a7fb4c5220 (diff) | |
download | gitea-cb9e10f97144248b512f8a528c6d443e9231651b.tar.gz gitea-cb9e10f97144248b512f8a528c6d443e9231651b.zip |
Fix label render containing invalid HTML (#27752) (#27762)
Backport #27752 by @earl-warren
- The label HTML contained a quote that wasn't being closed.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1651
(cherry picked from commit e2bc2c9a1fff482c49dbeb3a51e4e1c698bf506c)
Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
-rw-r--r-- | modules/templates/util_render.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go index ed6eae326a..84c3a1587a 100644 --- a/modules/templates/util_render.go +++ b/modules/templates/util_render.go @@ -179,7 +179,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML { s := fmt.Sprintf("<span class='ui label scope-parent' title='%s'>"+ "<div class='ui label scope-left' style='color: %s !important; background-color: %s !important'>%s</div>"+ - "<div class='ui label scope-right' style='color: %s !important; background-color: %s !important''>%s</div>"+ + "<div class='ui label scope-right' style='color: %s !important; background-color: %s !important'>%s</div>"+ "</span>", description, textColor, scopeColor, scopeText, |