gitweb: Remove characters entities entirely when shortening string -- correction
[gitweb.git] / gitweb / gitweb.cgi
index 73d14ffb100a62af275db3cb4791691d12f0b255..0953b8cd564dd8243d76ad9443c1dd51ebc37c18 100755 (executable)
@@ -776,7 +776,7 @@ sub chop_str {
        my $tail = $2;
        if (length($tail) > 4) {
                $tail = " ...";
-               $body =~ s/&[^;]$//; # remove chopped character entities
+               $body =~ s/&[^;]*$//; # remove chopped character entities
        }
        return "$body$tail";
 }