X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FApache%2FMVC.pm;h=d43e292534984f0ce2faf13eb0be713e6a385e74;hb=de775747b2afbf82d6b9858e958dc5a19ddfd31f;hp=68f2c0af1fdf0319d4ffa4de080532f5f787bba5;hpb=ca686e907626db505e8e4c8d95f9c70627f6ad03;p=maypole.git diff --git a/lib/Apache/MVC.pm b/lib/Apache/MVC.pm index 68f2c0a..d43e292 100644 --- a/lib/Apache/MVC.pm +++ b/lib/Apache/MVC.pm @@ -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];