diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-07-31 20:58:00 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-31 12:08:41 -0700 |
commit | 0349b4650969c9c59c58d99c95be3677f5bb2d15 (patch) | |
tree | 1ae825c42835b14f232be2cbc435bc615840f00d | |
parent | 822c185907f27c02ce7791985ea9241e37041d5f (diff) | |
download | git-0349b4650969c9c59c58d99c95be3677f5bb2d15.tar.gz |
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>
-rwxr-xr-x | gitweb/gitweb.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 73d14ffb10..0953b8cd56 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -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"; } |