Re: [PATCH 16] gitweb: Remove characters entities entirely when shortening string

From: Jakub Narebski <jnareb@gmail.com>
Date: 2006-08-01 02:59:08
Jakub Narebski wrote:

> --- 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


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Aug 01 03:00:40 2006

This archive was generated by hypermail 2.1.8 : 2006-08-01 03:01:40 EST