Code

gitweb: Remove characters entities entirely when shortening string -- correction
authorJakub Narebski <jnareb@gmail.com>
Mon, 31 Jul 2006 18:58:00 +0000 (20:58 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 19:08:41 +0000 (12:08 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi

index 73d14ffb100a62af275db3cb4791691d12f0b255..0953b8cd564dd8243d76ad9443c1dd51ebc37c18 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";
 }