$c->next::method(@_);
my $enc = $c->encoding;
+ return unless $enc;
for my $key (qw/ parameters query_parameters body_parameters /) {
for my $value ( values %{ $c->request->{$key} } ) {
my $ret = $c->next::method(@_);
+ my $enc = $c->encoding;
+ return $ret unless $enc;
+
foreach (@{$c->req->arguments}, @{$c->req->captures}) {
$_ = $c->_handle_param_unicode_decoding($_);
}
sub handle_unicode_encoding_exception {
my ( $self, $exception_ctx ) = @_;
- $self->log->warn($exception_ctx->{error_msg});
- return $exception_ctx->{'param_value'};
+ die $exception_ctx->{error_msg};
}
1;
This plugin is automatically loaded by apps. Even though is not a core component
yet, it will vanish as soon as the code is fully integrated. For more
-information, please refer to C<ENCODING> section at L<Catalyst>.
+information, please refer to L<Catalyst/ENCODING>.
=head1 AUTHORS