From: Jakub Narebski Date: Mon, 31 Jul 2006 18:58:00 +0000 (+0200) Subject: gitweb: Remove characters entities entirely when shortening string -- correction X-Git-Tag: v1.4.3-rc1~274^2~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0349b4650969c9c59c58d99c95be3677f5bb2d15;p=git.git gitweb: Remove characters entities entirely when shortening string -- correction Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 73d14ffb1..0953b8cd5 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -776,7 +776,7 @@ sub chop_str { my $tail = $2; if (length($tail) > 4) { $tail = " ..."; - $body =~ s/&[^;]$//; # remove chopped character entities + $body =~ s/&[^;]*$//; # remove chopped character entities } return "$body$tail"; }