From 63512cd15d14254beadc0fe105d4239708fb758d Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 24 Oct 2023 09:39:17 +0800 Subject: [PATCH] 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 <109468362+earl-warren@users.noreply.github.com> Co-authored-by: Gusted --- modules/templates/util_render.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go index d23103ce1b..749e2bf395 100644 --- a/modules/templates/util_render.go +++ b/modules/templates/util_render.go @@ -180,7 +180,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML { s := fmt.Sprintf(""+ "
%s
"+ - "
%s
"+ + "
%s
"+ "
", description, textColor, scopeColor, scopeText,