diff --git a/Redmine.pm b/Redmine.pm index e068f2c..fed503e 100644 --- a/Redmine.pm +++ b/Redmine.pm @@ -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@; } }