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:
parent
822c185907
commit
0349b46509
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user