Skip to content

Commit 63512cd

Browse files
GiteaBotearl-warrenGusted
authored
Fix label render containing invalid HTML (#27752) (#27761)
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 71803d3 commit 63512cd

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
@@ -180,7 +180,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML {
180180

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

0 commit comments

Comments
 (0)