Re: [PATCH 16] gitweb: Remove characters entities entirely when shortening string
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jul 31, 2006, 16:59 UTC
- Message-ID
- <ealcsb$88c$1@sea.gmane.org>
- In-Reply-To
- <200607302236.06686.jnareb@gmail.com>
Jakub Narebski wrote:
Show 10 quoted lines
> --- 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";
> }Of course it should be
+ $body =~ s/&[^;]*$//; # remove chopped character entities
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git