changed AccessHandler.pm to prepare for more flexible uri parsing

This commit is contained in:
hyung-hwan 2017-01-25 17:00:16 +00:00
parent 149fd61412
commit d3b61a6616

View File

@ -310,10 +310,13 @@ sub is_read_method
sub __handler
{
my ($r, $cfg, $dbh) = @_;
my ($empty, $base, $repo, $dummy) = split ('/', $r->uri(), 4);
my $method = uc($r->method());
my $is_method_r = is_read_method ($method);
#my ($empty, $base, $repo, $dummy) = split ('/', $r->uri(), 4);
my @urisegs = split ('/', $r->uri());
my $repo = $urisegs[2];
my $author;
my $userid = undef;
my $password = undef;