applied the parse_location patch to Apache::MVC as well.
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@291
48953598-375a-da11-a14b-
00016c27c3ee
2.05 Tue Oct 28 20:00:00 2004
- fixed a bug in CGI::Maypole::parse_location() (Dave Howorth)
+ - Also applied that fix to Apache::MVC (Marcus Ramberg)
- some fixes for Maypole::Config, Maypole::Model::Base and
Maypole::Model::CDBI::Plain (Dave Howorth)
- Added Apache::RequestIO to Apache::MVC (michael@diaspora.gen.nz)
$self->{path} = $self->{ar}->uri;
my $loc = $self->{ar}->location;
no warnings 'uninitialized';
+ $self->{path} .= '/' if $self->{path} eq $loc;
$self->{path} =~ s/^($loc)?\///;
$self->parse_path;
$self->parse_args;
$self->{path} = $self->{cgi}->url( -absolute => 1, -path_info => 1 );
my $loc = $self->{cgi}->url( -absolute => 1 );
no warnings 'uninitialized';
- $self->{path} =~ s/^($loc)?\///;
$self->{path} .= '/' if $self->{path} eq $loc;
+ $self->{path} =~ s/^($loc)?\///;
$self->parse_path;
$self->parse_args;
}