summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f59ec6e)
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
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 /
for (keys %headers) {
$self->headers_in->set($_, $headers{$_});
}
for (keys %headers) {
$self->headers_in->set($_, $headers{$_});
}
my $path = $self->ar->uri;
my $loc = $self->ar->location;
my $path = $self->ar->uri;
my $loc = $self->ar->location;
{
no warnings 'uninitialized';
$path .= '/' if $path eq $loc;
{
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->path($path);
$self->parse_path;
$self->parse_args;
$self->get_user;
my $url = URI->new($path);
$self->get_user;
my $url = URI->new($path);
$self->{path} = $url->path;
$self->parse_path;
$self->params( $url->query_form_hash );
$self->{path} = $url->path;
$self->parse_path;
$self->params( $url->query_form_hash );
my @pi = grep {length} split '/', $self->path;
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);
$self->table || $self->table(shift @pi);
$self->action || $self->action( shift @pi or 'index' );
$self->args || $self->args(\@pi);