]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
Fixed ordering of Dave's parse_location patch
[maypole.git] / lib / Apache / MVC.pm
index e14e40e266a9fccca0896085b4f9b6155727f694..cd4e96d2fc0550af8a0cdf7d6f007148a284257f 100644 (file)
@@ -30,6 +30,7 @@ sub parse_location {
     $self->{path} = $self->{ar}->uri;
     my $loc = $self->{ar}->location;
     no warnings 'uninitialized';
+    $self->{path} .= '/' if $self->{path} eq $loc;
     $self->{path} =~ s/^($loc)?\///;
     $self->parse_path;
     $self->parse_args;