1
0
mirror of https://github.com/git/git.git synced 2025-03-20 04:32:18 +00:00

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:
Jakub Narebski 2006-07-30 22:36:04 +02:00 committed by Junio C Hamano
parent 27fb8c40c6
commit 7ca84b5062

View File

@ -776,6 +776,7 @@ sub chop_str {
my $tail = $2;
if (length($tail) > 4) {
$tail = " ...";
$body =~ s/&[^;]$//; # remove chopped character entities
}
return "$body$tail";
}