]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.cgi
gitweb: Remove characters entities entirely when shortening string -- correction
[Gitweb] / gitweb.cgi
index 2044f803a0d3d3d84e5f670b7e86c8cd8dc9dbaf09e0a3eb404bce6d1f4c5c6e..5d03a9eb62daf909e71d2f35f9e3bef65cf0548ecbf1cdbd52345b2a7828b2ed 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";
 }
@@ -2347,7 +2347,7 @@ sub git_history {
        git_print_page_path($file_name, $ftype);
 
        open my $fd, "-|",
-               $GIT, "rev-list", "--full-history", $hash_base, "--", "\'$file_name\'";
+               $GIT, "rev-list", "--full-history", $hash_base, "--", $file_name;
        print "<table cellspacing=\"0\">\n";
        my $alternate = 0;
        while (my $line = <$fd>) {
This page took 0.447301 seconds and 4 git commands to generate.