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/gitweb.cgi | |
parent | gitweb: Headers refactoring - use git_header_div for header divs (diff) | |
download | tgif-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/gitweb.cgi')
-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 1012869048..1ff29bc291 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"; } |