]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/CGI/Maypole.pm
Fixed ordering of Dave's parse_location patch
[maypole.git] / lib / CGI / Maypole.pm
index 923316329c9ace54d5933314c2dd70bb566d2832..39514f97cb763550eb03f46451fcaaaeb36a4597 100644 (file)
@@ -21,8 +21,8 @@ sub parse_location {
     $self->{path} = $self->{cgi}->url( -absolute => 1, -path_info => 1 );
     my $loc = $self->{cgi}->url( -absolute => 1 );
     no warnings 'uninitialized';
-    $self->{path} =~ s/^($loc)?\///;
     $self->{path} .= '/' if $self->{path} eq $loc;
+    $self->{path} =~ s/^($loc)?\///;
     $self->parse_path;
     $self->parse_args;
 }