gitweb: Remove characters entities entirely when shortening string -- correction
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Jakub Narebski committed
Jul 31, 2006 at 20:58 UTC
0349b4650969c9c59c58d99c95be3677f5bb2d15
1 file changed
+1
-1
gitweb/gitweb.cgi
+1
-1
@@ -776,7 +776,7 @@ sub chop_str {
776
my $tail = $2;
777
if (length($tail) > 4) {
778
$tail = " ...";
779
- $body =~ s/&[^;]$//; # remove chopped character entities
779
+ $body =~ s/&[^;]*$//; # remove chopped character entities
780
}
781
return "$body$tail";
782
}