X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=18ddc4bcb8546a1c4c9444ff52896858a6f6b59f;hb=ab2374d3a68f4d44601813f351b38222822b7c39;hp=89de3caa22e02c84b734ba3984657f470161732b;hpb=8199eac32fd36ac2eb0754ef934d7159de23277d;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 89de3ca..18ddc4b 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -137,9 +137,9 @@ sub forward { my $command_copy = $command; unless ( $command_copy =~ s/^\/// ) { - $command_copy = - Catalyst::Utils::class2prefix( $caller, $c->config->{case_sensitive} ) - . "/${command}"; + my $namespace = + Catalyst::Utils::class2prefix( $caller, $c->config->{case_sensitive} ) || ''; + $command_copy = "${namespace}/${command}"; } unless ( $command_copy =~ /\// ) {