Browse Source

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>
maint
Jakub Narebski 19 years ago committed by Junio C Hamano
parent
commit
7ca84b5062
  1. 1
      gitweb/gitweb.cgi

1
gitweb/gitweb.cgi

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

Loading…
Cancel
Save