summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.cgi
diff options
context:
space:
mode:
authorLibravatar Jakub Narebski <jnareb@gmail.com>2006-07-30 22:36:04 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-07-30 18:42:33 -0700
commit7ca84b506281495b9ec43801d08b7209b08be92d (patch)
tree4b43d5a5069ba1d4325e0fccf12a9e540b9ddd75 /gitweb/gitweb.cgi
parentgitweb: Headers refactoring - use git_header_div for header divs (diff)
downloadtgif-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-xgitweb/gitweb.cgi1
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";
}