diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-14 15:15:12 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-14 15:15:12 +0100 |
commit | a9e60b7d097c6f1a0ebca058ae24e544e231f91d (patch) | |
tree | dbaa65d8817399fcd58d4af78c41e18a4f37b726 | |
parent | 7f2a645e4f0ca88184440980d64bf3ccb2ec8c97 (diff) | |
download | git-a9e60b7d097c6f1a0ebca058ae24e544e231f91d.tar.gz git-a9e60b7d097c6f1a0ebca058ae24e544e231f91d.tar.xz |
escape ' ' with '+' in url's
-rwxr-xr-x | gitweb.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb.cgi b/gitweb.cgi index a88c985b5..0822cb1e3 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -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>) { |