X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=e68e18cb3f92738bfa7dd59c75052c9fcb8c332c;hb=refs%2Ftags%2F5.90112;hp=7f9fe309f55c4999f376a7f5f5508ec099ebf4a1;hpb=a050c28ac1ca3424009799a5472886323b8250bf;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 7f9fe30..e68e18c 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -3654,6 +3654,9 @@ sub _handle_param_unicode_decoding { return $value if blessed($value); #don't decode when the value is an object. my $enc = $self->encoding; + + return $value unless $enc; # don't decode if no encoding is specified + $check ||= $self->_encode_check; return try { $enc->decode( $value, $check);