gitweb: Remove characters entities entirely when shortening string
Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
27fb8c40c6
commit
7ca84b5062
@ -776,6 +776,7 @@ sub chop_str {
|
|||||||
my $tail = $2;
|
my $tail = $2;
|
||||||
if (length($tail) > 4) {
|
if (length($tail) > 4) {
|
||||||
$tail = " ...";
|
$tail = " ...";
|
||||||
|
$body =~ s/&[^;]$//; # remove chopped character entities
|
||||||
}
|
}
|
||||||
return "$body$tail";
|
return "$body$tail";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user