Skip to content

Commit cb9e10f

Browse files
GiteaBotearl-warrenGusted
authored
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 <[email protected]> Co-authored-by: Gusted <[email protected]>
1 parent 5087de1 commit cb9e10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/templates/util_render.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML {
179179

180180
s := fmt.Sprintf("<span class='ui label scope-parent' title='%s'>"+
181181
"<div class='ui label scope-left' style='color: %s !important; background-color: %s !important'>%s</div>"+
182-
"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important''>%s</div>"+
182+
"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important'>%s</div>"+
183183
"</span>",
184184
description,
185185
textColor, scopeColor, scopeText,

0 commit comments

Comments
 (0)