X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=2f3f75e8cc77680a9674b74828ece1a146f61f48;hb=3a9e643a6a5fa96ca69b56ced03db9569fd96e2e;hp=39a776a7691c19e62cb24ae3a345c5e6a63d6905;hpb=3f3f95d5fdfacddf4d89137f62cde7858dc23d08;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 39a776a..2f3f75e 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -7,7 +7,7 @@ use Maypole::Config; use Maypole::Constants; use Maypole::Headers; -our $VERSION = '2.06'; +our $VERSION = '2.09'; __PACKAGE__->mk_classdata($_) for qw( config init_done view_object ); __PACKAGE__->mk_accessors( @@ -186,8 +186,7 @@ sub exception { return ERROR } sub parse_path { my $self = shift; $self->{path} ||= "frontpage"; - my @pi = split /\//, $self->{path}; - shift @pi while @pi and !$pi[0]; + my @pi = $self->{path} =~ m{([^/]+)/?}g; $self->{table} = shift @pi; $self->{action} = shift @pi; $self->{action} ||= "index"; @@ -492,7 +491,7 @@ Maypole is currently maintained by Simon Flack C Simon Cozens, C -Sebastian Riedel, C maintained Maypole from 1.8 to 2.04 +Sebastian Riedel, C maintained Maypole from 1.99_01 to 2.04 =head1 THANKS TO