gitweb: Remove characters entities entirely when shortening string
authorJakub Narebski <jnareb@gmail.com>
Sun, 30 Jul 2006 20:36:04 +0000 (22:36 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 01:42:33 +0000 (18:42 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi

index 10128690484e060113088297ea85059b8ec48bb2..1ff29bc2918d203715709930a34fe082d60e579a 100755 (executable)
@@ -776,6 +776,7 @@ sub chop_str {
        my $tail = $2;
        if (length($tail) > 4) {
                $tail = " ...";
+               $body =~ s/&[^;]$//; # remove chopped character entities
        }
        return "$body$tail";
 }