]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.cgi
gitweb: Remove characters entities entirely when shortening string
[Gitweb] / 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.177943 seconds and 4 git commands to generate.