projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27fb8c4
)
gitweb: Remove characters entities entirely when shortening string
author
Jakub Narebski
<jnareb@gmail.com>
Sun, 30 Jul 2006 20:36:04 +0000
(22:36 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 31 Jul 2006 01:42:33 +0000
(18:42 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi
patch
|
blob
|
history
diff --git
a/gitweb/gitweb.cgi
b/gitweb/gitweb.cgi
index 10128690484e060113088297ea85059b8ec48bb2..1ff29bc2918d203715709930a34fe082d60e579a 100755
(executable)
--- 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";
}