gitweb: Remove characters entities entirely when shortening string
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Jul 30, 2006 at 22:36 UTC
7ca84b506281495b9ec43801d08b7209b08be92d
1 file changed
+1
gitweb/gitweb.cgi
+1
@@ -776,6 +776,7 @@ sub chop_str {
776
my $tail = $2;
777
if (length($tail) > 4) {
778
$tail = " ...";
779
+ $body =~ s/&[^;]$//; # remove chopped character entities
780
}
781
return "$body$tail";
782
}