X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=34e2ebbc2b7819c7657e98550fa4e03a97b3d99e;hb=75e8e464477b6476876f0d43e41677446fe34b89;hp=e89cef0af6ce89865530e566592e3e010127bdf1;hpb=889475be74f43b938d8dbcb549699c939dfe9d66;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index e89cef0..34e2ebb 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.05'; +our $VERSION = '2.08'; __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,11 +491,13 @@ Maypole is currently maintained by Simon Flack C Simon Cozens, C +Sebastian Riedel, C maintained Maypole from 1.99_01 to 2.04 + =head1 THANKS TO -Danijel Milicevic, Dave Slack, Jesse Sheidlower, Jody Belka, Marcus Ramberg, -Mickael Joanne, Randal Schwartz, Simon Flack, Steve Simms, Veljko Vidovic -and all the others who've helped. +Sebastian Riedel, Danijel Milicevic, Dave Slack, Jesse Sheidlower, Jody Belka, +Marcus Ramberg, Mickael Joanne, Randal Schwartz, Simon Flack, Steve Simms, +Veljko Vidovic and all the others who've helped. =head1 LICENSE