]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Remove characters entities entirely when shortening string -- correction
authorJakub Narebski <redacted>
Mon, 31 Jul 2006 18:58:00 +0000 (20:58 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index e61f68146d02869d9b36e1ec37d54810eb86e840db0ec177c4f622f9cacedadf..5d03a9eb62daf909e71d2f35f9e3bef65cf0548ecbf1cdbd52345b2a7828b2ed 100755 (executable)
@@ -776,7 +776,7 @@ sub chop_str {
        my $tail = $2;
        if (length($tail) > 4) {
                $tail = " ...";
-               $body =~ s/&[^;]$//; # remove chopped character entities
+               $body =~ s/&[^;]*$//; # remove chopped character entities
        }
        return "$body$tail";
 }
This page took 0.188664 seconds and 4 git commands to generate.