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: https://git.lorimer.id.au/gitweb.git/diff_plain/7ca84b506281495b9ec43801d08b7209b08be92d 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 1012869048..1ff29bc291 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"; }