diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-07-30 22:36:04 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-30 18:42:33 -0700 |
commit | 7ca84b506281495b9ec43801d08b7209b08be92d (patch) | |
tree | 4b43d5a5069ba1d4325e0fccf12a9e540b9ddd75 /gitweb | |
parent | 27fb8c40c6b634c67f5b5fb3b354a207cc10b343 (diff) | |
download | git-7ca84b506281495b9ec43801d08b7209b08be92d.tar.gz git-7ca84b506281495b9ec43801d08b7209b08be92d.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.cgi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index 101286904..1ff29bc29 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -776,6 +776,7 @@ sub chop_str { my $tail = $2; if (length($tail) > 4) { $tail = " ..."; + $body =~ s/&[^;]$//; # remove chopped character entities } return "$body$tail"; } |