X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=25ebecf81b5f0f20038ffd342e91bcf65195bbae;hb=1f851263ba70ba7d398ed19b45eaaca482f5aaa3;hp=a7519840460a3787617e17d51bf0ccaa4ace6b96;hpb=79f5d5718d885ee1c3f288159a31562f9cf5b02f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index a751984..25ebecf 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -78,7 +78,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.80005'; +our $VERSION = '5.80006'; { my $dev_version = $VERSION =~ /_\d{2}$/; @@ -1232,12 +1232,12 @@ sub uri_for { my $key = $_; $val = '' unless defined $val; (map { - $_ = "$_"; - utf8::encode( $_ ) if utf8::is_utf8($_); + my $param = "$_"; + utf8::encode( $param ) if utf8::is_utf8($param); # using the URI::Escape pattern here so utf8 chars survive - s/([^A-Za-z0-9\-_.!~*'() ])/$URI::Escape::escapes{$1}/go; - s/ /+/g; - "${key}=$_"; } ( ref $val eq 'ARRAY' ? @$val : $val )); + $param =~ s/([^A-Za-z0-9\-_.!~*'() ])/$URI::Escape::escapes{$1}/go; + $param =~ s/ /+/g; + "${key}=$param"; } ( ref $val eq 'ARRAY' ? @$val : $val )); } @keys); } @@ -1512,10 +1512,10 @@ sub execute { if ( my $error = $@ ) { if ( blessed($error) and $error->isa('Catalyst::Exception::Detach') ) { - die $DETACH if($c->depth > 1); + $error->rethrow if $c->depth > 1; } elsif ( blessed($error) and $error->isa('Catalyst::Exception::Go') ) { - die $GO if($c->depth > 0); + $error->rethrow if $c->depth > 0; } else { unless ( ref $error ) { @@ -2511,7 +2511,7 @@ the plugin name does not begin with C. $class->_plugins( {} ) unless $class->_plugins; $plugins ||= []; - + my @plugins = Catalyst::Utils::resolve_namespace($class . '::Plugin', 'Catalyst::Plugin', @$plugins); for my $plugin ( reverse @plugins ) {