made DFV and FromCGI warn instead of die on unexpected cgi params
added CGI params to TT error template
small improvements to some factory templates
+ fix to path handling in mod_perl when location ends in /
2.11 Mon 31 July 2006
$self->ar($ar);
}
-=item parse_location
+=item warn
=cut
return;
}
-=item warn
+
+=item parse_location
=cut
for (keys %headers) {
$self->headers_in->set($_, $headers{$_});
}
+
my $path = $self->ar->uri;
my $loc = $self->ar->location;
+
{
no warnings 'uninitialized';
$path .= '/' if $path eq $loc;
- $path =~ s/^($loc)?\///;
+ if ($loc =~ /\/$/) {
+ $path =~ s/^($loc)?//;
+ } else {
+ $path =~ s/^($loc)?\///;
+ }
}
+
$self->path($path);
$self->parse_path;
$self->parse_args;
$self->get_user;
my $url = URI->new($path);
- warn "path : $path\n";
$self->{path} = $url->path;
$self->parse_path;
$self->params( $url->query_form_hash );
my @pi = grep {length} split '/', $self->path;
-
$self->table || $self->table(shift @pi);
$self->action || $self->action( shift @pi or 'index' );
$self->args || $self->args(\@pi);