From: Tomas Doran Date: Fri, 1 Jul 2011 13:23:33 +0000 (+0100) Subject: More disable_component_resolution_regex_fallback X-Git-Tag: 5.80033~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f899107d00c9414a83e8a48386e298ba6e270af3 More disable_component_resolution_regex_fallback --- 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 cb908ec..9e41ec6 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -861,6 +861,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;