From: Jakub Narebski Date: Sun, 30 Jul 2006 20:36:04 +0000 (+0200) Subject: gitweb: Remove characters entities entirely when shortening string X-Git-Tag: v1.4.3-rc1~274^2~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ca84b506281495b9ec43801d08b7209b08be92d;p=git.git gitweb: Remove characters entities entirely when shortening string Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 101286904..1ff29bc29 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -776,6 +776,7 @@ sub chop_str { my $tail = $2; if (length($tail) > 4) { $tail = " ..."; + $body =~ s/&[^;]$//; # remove chopped character entities } return "$body$tail"; }