Merge branch 'jn/gitweb-committag'

* jn/gitweb-committag:
  gitweb: Better regexp for SHA-1 committag match
This commit is contained in:
Junio C Hamano 2009-02-15 01:44:11 -08:00
commit 2a8644c7f1

View File

@ -1368,7 +1368,7 @@ sub format_log_line_html {
my $line = shift; my $line = shift;
$line = esc_html($line, -nbsp=>1); $line = esc_html($line, -nbsp=>1);
if ($line =~ m/([0-9a-fA-F]{8,40})/) { if ($line =~ m/\b([0-9a-fA-F]{8,40})\b/) {
my $hash_text = $1; my $hash_text = $1;
my $link = my $link =
$cgi->a({-href => href(action=>"object", hash=>$hash_text), $cgi->a({-href => href(action=>"object", hash=>$hash_text),