From de775747b2afbf82d6b9858e958dc5a19ddfd31f Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 26 Feb 2004 15:07:02 +0000 Subject: [PATCH] Make frontpage actually work. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@77 48953598-375a-da11-a14b-00016c27c3ee --- lib/Apache/MVC.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.39.5