Browse Source

escape ' ' with '+' in url's

maint
Kay Sievers 19 years ago
parent
commit
a9e60b7d09
  1. 4
      gitweb.cgi

4
gitweb.cgi

@ -209,8 +209,8 @@ if (!defined $action || $action eq "summary") {


sub esc { sub esc {
my $str = shift; my $str = shift;
$str =~ s/ /%20/g;
$str =~ s/\+/%2B/g; $str =~ s/\+/%2B/g;
$str =~ s/ /\+/g;
return $str; return $str;
} }


@ -2167,7 +2167,7 @@ sub git_search {


if ($pickaxe_search) { if ($pickaxe_search) {
$/ = "\n"; $/ = "\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; undef %co;
my @files; my @files;
while (my $line = <$fd>) { while (my $line = <$fd>) {

Loading…
Cancel
Save