From: André Walker Date: Tue, 5 Jul 2011 14:48:38 +0000 (-0300) Subject: Merge branch 'master' into gsoc_breadboard X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=01c3d0f7451b25366ca49f6980d8584f8563a432;hp=2bb0da6d84bec5f827e95e3c3aed6f12a94f91d7;p=catagits%2FCatalyst-Runtime.git Merge branch 'master' into gsoc_breadboard --- diff --git a/Changes b/Changes index b6ec42c..cecff5e 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ # This file documents the revision history for Perl extension Catalyst. + Bug fixes: + - Fix the disable_component_resolution_regex_fallback config setting + to also work in the $c->component method. + 5.80032 2011-02-23 01:10:00 Bug fixes: diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 1fabc37..ccc6853 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -866,6 +866,9 @@ sub component { return $c->_filter_component( $comp, @args ) if $comp; } + return + if $c->config->{disable_component_resolution_regex_fallback}; + # This is here so $c->comp( '::M::' ) works my $query = ref $name ? $name : qr{$name}i; @@ -2894,7 +2897,7 @@ the plugin name does not begin with C. my $class = ref $proto || $proto; Class::MOP::load_class( $plugin ); - $class->log->warn( "$plugin inherits from 'Catalyst::Component' - this is decated and will not work in 5.81" ) + $class->log->warn( "$plugin inherits from 'Catalyst::Component' - this is deprecated and will not work in 5.81" ) if $plugin->isa( 'Catalyst::Component' ); $proto->_plugins->{$plugin} = 1; unless ($instant) { diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 9a7650d..c058daa 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -427,6 +427,10 @@ Shortcut for $req->parameters. Returns the path, i.e. the part of the URI after $req->base, for the current request. + http://localhost/path/foo + + $c->request->path will contain 'path/foo' + =head2 $req->path_info Alias for path, added for compatibility with L.