]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/CGI/Maypole.pm
some fixes for Maypole::Config, Maypole::Model::Base and
[maypole.git] / lib / CGI / Maypole.pm
index 7da043c4665e7523836391af557f36199e9b2631..345b68ee9c0e577f4ffff06780b07b40dafe0f7e 100644 (file)
@@ -4,7 +4,7 @@ use base 'Maypole';
 use strict;
 use warnings;
 
-our $VERSION = '2.04';
+our $VERSION = '2.05';
 
 sub run {
     my $self = shift;
@@ -22,6 +22,7 @@ sub parse_location {
     my $loc = $self->{cgi}->url( -absolute => 1 );
     no warnings 'uninitialized';
     $self->{path} =~ s/^($loc)?\///;
+    $self->{path} .= '/' if $self->{path} eq $loc;
     $self->parse_path;
     $self->parse_args;
 }