# This file documents the revision history for Perl extension Catalyst.
+ Bug fixed:
+ - Call ->canonical on URI derived from $ENV{REQUEST_URI} to get
+ paths correctly decoded. This bug was previously hidden by a bug
+ in HTTP::Request::AsCGI
+
Documentation:
- Clarify that uri_for_action works on private paths, with example.
my $query = $ENV{QUERY_STRING} ? '?' . $ENV{QUERY_STRING} : '';
my $uri = $scheme . '://' . $host . '/' . $path . $query;
- $c->request->uri( bless \$uri, $uri_class );
+ $c->request->uri( bless(\$uri, $uri_class)->canonical );
# set the base URI
# base must end in a slash
my $base_uri = $scheme . '://' . $host . $base_path;
- $c->request->base( bless \$base_uri, $uri_class );
+ $c->request->base( bless(\$base_uri, $uri_class)->canonical );
}
=head2 $self->prepare_query_parameters($c)