Merge branch 'master' into psgi
Florian Ragwitz [Wed, 6 Jul 2011 00:06:31 +0000 (02:06 +0200)]
* master:
  More disable_component_resolution_regex_fallback
  give an example for $c->request->path
  fix typo

Conflicts:
Changes

Changes
lib/Catalyst.pm
lib/Catalyst/Request.pm

diff --git a/Changes b/Changes
index 71df11f..bfb09ae 100644 (file)
--- 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.89002 2011-03-02 11:30:00 (TRIAL release)
 
  Bug fixes:
index 5d2d3fc..0111228 100644 (file)
@@ -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;
 
@@ -2869,7 +2872,7 @@ the plugin name does not begin with C<Catalyst::Plugin::>.
         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) {
index 9a7650d..c058daa 100644 (file)
@@ -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<CGI>.