1
0
mirror of https://github.com/git/git.git synced 2024-09-25 02:50:49 +02:00

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>
This commit is contained in:
Jakub Narebski 2006-07-31 20:58:00 +02:00 committed by Junio C Hamano
parent 822c185907
commit 0349b46509

View File

@ -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";
}