]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
Miscellaneous fixes.
[maypole.git] / lib / Apache / MVC.pm
index d43e292534984f0ce2faf13eb0be713e6a385e74..0b1c87333838ce56fd0a679d6f9f036639c2f199 100644 (file)
@@ -15,7 +15,7 @@ sub parse_location {
     $self->{path} = $self->{ar}->uri;
     my $loc = $self->{ar}->location;
     no warnings 'uninitialized';
-    $self->{path} =~ s/^$loc?\///;
+    $self->{path} =~ s/^($loc)?\///;
     $self->{path} ||= "frontpage";
     my @pi = split /\//, $self->{path};
     shift @pi while @pi and !$pi[0];