@matheusbsbs / matheus-bagliano / commits / a9e60b7d09
Fork 0

escape ' ' with '+' in url's

Kay Sievers committed Nov 14, 2005 at 15:15 UTC a9e60b7d097c6f1a0ebca058ae24e544e231f91d
1 file changed +2 -2
gitweb.cgi
+2 -2
@@ -209,8 +209,8 @@ if (!defined $action || $action eq "summary") {
209
210 sub esc {
211 my $str = shift;
212 - $str =~ s/ /%20/g;
212 $str =~ s/\+/%2B/g;
213 + $str =~ s/ /\+/g;
214 return $str;
215 }
216
@@ -2167,7 +2167,7 @@ sub git_search {
2167
2168 if ($pickaxe_search) {
2169 $/ = "\n";
2170 - open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S$searchtext";
2170 + open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin -S\'$searchtext\'";
2171 undef %co;
2172 my @files;
2173 while (my $line = <$fd>) {