]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Remove characters entities entirely when shortening string
authorJakub Narebski <redacted>
Sun, 30 Jul 2006 20:36:04 +0000 (22:36 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index fb7d589e150a00d7bb556d88dfa67e38c243f4313961790ec3895d0379d8c069..ccd1949af5f2dab45ac9c0f3b39203089af65c61b2358fd7a03a772eda0a2007 100755 (executable)
@@ -776,6 +776,7 @@ sub chop_str {
        my $tail = $2;
        if (length($tail) > 4) {
                $tail = " ...";
+               $body =~ s/&[^;]$//; # remove chopped character entities
        }
        return "$body$tail";
 }
This page took 0.232333 seconds and 4 git commands to generate.