]> git.decadent.org.uk Git - maypole.git/commitdiff
Make frontpage actually work.
authorSimon Cozens <simon@simon-cozens.org>
Thu, 26 Feb 2004 15:07:02 +0000 (15:07 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Thu, 26 Feb 2004 15:07:02 +0000 (15:07 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@77 48953598-375a-da11-a14b-00016c27c3ee

lib/Apache/MVC.pm

index 68f2c0af1fdf0319d4ffa4de080532f5f787bba5..d43e292534984f0ce2faf13eb0be713e6a385e74 100644 (file)
@@ -14,7 +14,8 @@ sub parse_location {
     my $self = shift;
     $self->{path} = $self->{ar}->uri;
     my $loc = $self->{ar}->location;
-    $self->{path} =~ s/^$loc//; # I shouldn't need to do this?
+    no warnings 'uninitialized';
+    $self->{path} =~ s/^$loc?\///;
     $self->{path} ||= "frontpage";
     my @pi = split /\//, $self->{path};
     shift @pi while @pi and !$pi[0];