aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-07-30 22:36:04 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-30 18:42:33 -0700
commit7ca84b506281495b9ec43801d08b7209b08be92d (patch)
tree4b43d5a5069ba1d4325e0fccf12a9e540b9ddd75 /gitweb
parent27fb8c40c6b634c67f5b5fb3b354a207cc10b343 (diff)
downloadgit-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-xgitweb/gitweb.cgi1
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";
}