Fix: Handle ampersand in branch names properly
PATCH 1/1 Fix: Handle ampersand in branch names properly
Hello git maintainer crew,
recently I stumbled about gitweb generating improper HTML after
somebody merged from a branch contining an ampersand, e.g. branch name=fixes&features.
Thanks, Alexander Kurz
Quoted 1 line
From
beccd85ba8b8421213056883f31365f33d6e4490Mon Sep 17 00:00:00 2001
From: kurz <[email protected]>
Date: Thu, 10 Oct 2013 16:09:46 +0200
Subject: [PATCH] Fix: Handle ampersand in branch names properly
--- gitweb/gitweb.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
gitweb/gitweb.perl +1 -1
@@ -2026,7 +2026,7 @@ sub format_ref_marker { -href => href( action=>$dest_action, hash=>$dest - )}, $name); + )}, esc_attr($name)); $markers .= " <span class=\"".esc_attr($class)."\" title=\"".esc_attr($ref)."\">" . $link . "</span>";
Signature · 1 line
1.7.10.4