summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-08-08 14:48:40 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-08 14:48:40 -0700
commitae674b0130ca8fc83960d2549a68f1b2d573e6ec (patch)
treea1e4e418ad45831bdaf9e36a56af4947eb57f817
parentMerge branch 'jk/pack-objects-optim' (diff)
parentgitweb: escape link body in format_ref_marker (diff)
downloadtgif-ae674b0130ca8fc83960d2549a68f1b2d573e6ec.tar.xz
Merge branch 'ab/gitweb-link-html-escape'
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
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 2fddf750fa..33d701d852 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -2090,7 +2090,7 @@ sub format_ref_marker {
-href => href(
action=>$dest_action,
hash=>$dest
- )}, $name);
+ )}, esc_html($name));
$markers .= " <span class=\"".esc_attr($class)."\" title=\"".esc_attr($ref)."\">" .
$link . "</span>";