]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: link to 7-char+ SHA-1s, not only 8-char+
[Gitweb] / gitweb.perl
index ec4547b35b712aedecea25d5197cd3de985bdaa0a84201bb19200fd281b33621..99ed3e8c5766fa61608e2494489166c33798e548a870a08efd15d44ea79696cc 100755 (executable)
@@ -1617,7 +1617,7 @@ sub esc_path {
        return $str;
 }
 
        return $str;
 }
 
-# Sanitize for use in XHTML + application/xml+xhtm (valid XML 1.0)
+# Sanitize for use in XHTML + application/xml+xhtml (valid XML 1.0)
 sub sanitize {
        my $str = shift;
 
 sub sanitize {
        my $str = shift;
 
@@ -2037,7 +2037,7 @@ sub format_log_line_html {
        my $line = shift;
 
        $line = esc_html($line, -nbsp=>1);
        my $line = shift;
 
        $line = esc_html($line, -nbsp=>1);
-       $line =~ s{\b([0-9a-fA-F]{8,40})\b}{
+       $line =~ s{\b([0-9a-fA-F]{7,40})\b}{
                $cgi->a({-href => href(action=>"object", hash=>$1),
                                        -class => "text"}, $1);
        }eg;
                $cgi->a({-href => href(action=>"object", hash=>$1),
                                        -class => "text"}, $1);
        }eg;
This page took 0.141425 seconds and 4 git commands to generate.