summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6dc05fa)
raw | patch | inline | side by side (parent: 6dc05fa)
author | Kay Sievers <kay.sievers@suse.de> | |
Thu, 24 Nov 2005 17:14:25 +0000 (18:14 +0100) | ||
committer | Kay Sievers <kay.sievers@suse.de> | |
Thu, 24 Nov 2005 17:14:25 +0000 (18:14 +0100) |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
gitweb.cgi | patch | blob | history |
diff --git a/gitweb.cgi b/gitweb.cgi
index cbddd3e8402aa4a1424b32b25fb16e30653d0d2d..e81064f14588257bc5870453ea6247ef9be3b5f0 100755 (executable)
--- a/gitweb.cgi
+++ b/gitweb.cgi
my $t_mode = $1;
my $t_type = $2;
my $t_hash = $3;
- my $t_name = $4;
+ my $t_name = validate_input(unquote($4));
if ($t_name eq $part) {
if (!(@parts)) {
return $t_hash;
sub git_blob {
if (!defined $hash && defined $file_name) {
my $base = $hash_base || git_read_hash("$project/HEAD");
- $hash = git_get_hash_by_path($base, $file_name, "blob");
+ $hash = git_get_hash_by_path($base, $file_name, "blob") || die_error(undef, "Error lookup file.");
}
open my $fd, "-|", "$gitbin/git-cat-file blob $hash" or die_error(undef, "Open failed.");
git_header_html();