Skip to content

Commit 1dc4aa6

Browse files
committed
Merge branch 'ab/gitweb-link-html-escape' into maint
The characters in the label shown for tags/refs for commits in "gitweb" output are now properly escaped for proper HTML output. * ab/gitweb-link-html-escape: gitweb: escape link body in format_ref_marker
2 parents 85b2ea2 + 77947bb commit 1dc4aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitweb/gitweb.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ sub format_ref_marker {
20902090
-href => href(
20912091
action=>$dest_action,
20922092
hash=>$dest
2093-
)}, $name);
2093+
)}, esc_html($name));
20942094

20952095
$markers .= " <span class=\"".esc_attr($class)."\" title=\"".esc_attr($ref)."\">" .
20962096
$link . "</span>";

0 commit comments

Comments
 (0)