- Nailed one dispatcher forward-with-args-in-uri bug
Matt S Trout [Wed, 12 Oct 2005 19:10:27 +0000 (19:10 +0000)]
lib/Catalyst/Dispatcher.pm

index 94e5290..b327ade 100644 (file)
@@ -144,7 +144,8 @@ sub forward {
             my @extra_args;
           DESCEND: while ( $command_copy =~ s/^\/(.*)\/(\w+)$/\/$1/ ) {
                 my $tail = $2;
-                if ( $results = $c->get_action( $tail, $1 ) ) {
+                $results = $c->get_action( $tail, $1 );
+                if ( @{$results} ) {
                     $command   = $tail;
                     $namespace = $command_copy;
                     push( @{$arguments}, @extra_args );