Refuse all requests involved in git push if the user has no write permission.

Fixes #1.
master
Adirelle 2013-05-27 13:15:23 +02:00
parent c0f9043cf0
commit ab23f0f051
1 changed files with 1 additions and 2 deletions

View File

@ -565,8 +565,7 @@ sub is_read_request {
if($cfg->{RepositoryType} eq "Subversion") {
return defined $read_only_methods{$r->method};
} else {
my $quoted_location = quotemeta($r->location);
return $r->uri !~ m@^$quoted_location/.*/git-receive-pack$@;
return $r->unparsed_uri !~ m@[=/]git-receive-pack@;
}
}