From: Jakub Narebski Date: Sun, 30 Jul 2006 20:36:04 +0000 (+0200) Subject: gitweb: Remove characters entities entirely when shortening string X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/0e80f7b0c8f1245ded3898f0a6884f11b1a85ea9bd43e694f28481eafc8713ac gitweb: Remove characters entities entirely when shortening string Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.cgi b/gitweb.cgi index fb7d589..ccd1949 100755 --- a/gitweb.cgi +++ b/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"; }