mirror of
https://github.com/git/git.git
synced 2024-11-25 10:54:00 +08:00
Merge branch 'jn/gitweb-committag'
* jn/gitweb-committag: gitweb: Better regexp for SHA-1 committag match
This commit is contained in:
commit
2a8644c7f1
@ -1368,7 +1368,7 @@ sub format_log_line_html {
|
||||
my $line = shift;
|
||||
|
||||
$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 $link =
|
||||
$cgi->a({-href => href(action=>"object", hash=>$hash_text),
|
||||
|
Loading…
Reference in New Issue
Block a user