X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=73214df03c42b6c2cc3d78b3d202f7a25e8d8f09;hp=e18ba6c927c9ba464d946ee61dbd39a0822b1b2c;hb=052a2d89ac696b137f1456a339a77c1607dfe544;hpb=b4b01a8af03edee28ae4d64b054dea6ea51fb511 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index e18ba6c..73214df 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -61,7 +61,7 @@ __PACKAGE__->engine_class('Catalyst::Engine::CGI'); __PACKAGE__->request_class('Catalyst::Request'); __PACKAGE__->response_class('Catalyst::Response'); -our $VERSION = '5.67'; +our $VERSION = '5.6900'; sub import { my ( $class, @arguments ) = @_; @@ -881,7 +881,7 @@ sub uri_for { if( $isa_ref and $isa_ref ne 'ARRAY' ) { croak( "Non-array reference ($isa_ref) passed to uri_for()" ); } - utf8::encode( $_ ) for $isa_ref ? @$value : $value; + utf8::encode( $_ ) for grep { defined } $isa_ref ? @$value : $value; }; # join args with '/', or a blank string @@ -1082,7 +1082,10 @@ that will be dumped on the error page in debug mode. sub dump_these { my $c = shift; - [ Request => $c->req ], [ Response => $c->res ], [ Stash => $c->stash ],; + [ Request => $c->req ], + [ Response => $c->res ], + [ Stash => $c->stash ], + [ Config => $c->config ]; } =head2 $c->engine_class