summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 353347b)
raw | patch | inline | side by side (parent: 353347b)
author | Kay Sievers <kay.sievers@suse.de> | |
Mon, 14 Nov 2005 05:10:07 +0000 (06:10 +0100) | ||
committer | Kay Sievers <kay.sievers@suse.de> | |
Mon, 14 Nov 2005 05:10:07 +0000 (06:10 +0100) |
gitweb.cgi | patch | blob | history |
diff --git a/gitweb.cgi b/gitweb.cgi
index c477bf1bab0e5044a37838aaf2311b830a78c936..1482fecb5058eac67961885daece9e1cd7547394 100755 (executable)
--- a/gitweb.cgi
+++ b/gitweb.cgi
if ($input =~ m/(^|\/)(|\.|\.\.)($|\/)/) {
return undef;
}
- if ($input =~ m/[^a-zA-Z0-9_\.\/\-\+\#\~]/) {
+ if ($input =~ m/[^a-zA-Z0-9_ \.\/\-\+\#\~]/) {
return undef;
}
return $input;
sub esc {
my $str = shift;
- $str =~ s/ /\+/g;
- $str =~ s/\+/%2b/g;
+ $str =~ s/ /%20/g;
+ $str =~ s/\+/%2B/g;
return $str;
}
close $fd;
}
- open my $fd, "-|", "/usr/bin/diff -u -p -L $from_name -L $to_name $from_tmp $to_tmp";
+ open my $fd, "-|", "/usr/bin/diff -u -p -L \'$from_name\' -L \'$to_name\' $from_tmp $to_tmp";
if ($format eq "plain") {
undef $/;
print <$fd>;
"</div>\n";
print "<div class=\"page_path\"><b>/$file_name</b><br/></div>\n";
- open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin $file_name";
+ open my $fd, "-|", "$gitbin/git-rev-list $hash | $gitbin/git-diff-tree -r --stdin \'$file_name\'";
my $commit;
print "<table cellspacing=\"0\">\n";
my $alternate = 0;