]> Lady’s Gitweb - Gitweb/commitdiff
escape ' ' with '+' in url's
authorKay Sievers <redacted>
Mon, 14 Nov 2005 14:15:12 +0000 (15:15 +0100)
committerKay Sievers <redacted>
Mon, 14 Nov 2005 14:15:12 +0000 (15:15 +0100)
gitweb.cgi

index bacdfd8b993796c76259ff66324904c31179bba17c799186174791fdf2f47945..08c834d28329ff3eb7bfee2c44e9a5e902ec56cdf155189412388a957a8958e7 100755 (executable)
@@ -209,8 +209,8 @@ if (!defined $action || $action eq "summary") {
 
 sub esc {
        my $str = shift;
-       $str =~ s/ /%20/g;
        $str =~ s/\+/%2B/g;
+       $str =~ s/ /\+/g;
        return $str;
 }
 
@@ -2167,7 +2167,7 @@ sub git_search {
 
        if ($pickaxe_search) {
                $/ = "\n";
-               open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S$searchtext";
+               open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S\'$searchtext\'";
                undef %co;
                my @files;
                while (my $line = <$fd>) {
This page took 0.265152 seconds and 4 git commands to generate.