From: Matt S Trout Date: Wed, 12 Oct 2005 19:10:27 +0000 (+0000) Subject: - Nailed one dispatcher forward-with-args-in-uri bug X-Git-Tag: 5.7099_04~1217 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=805d0f30e1e7d43532004b3af625e8b8cc65f2b3 - Nailed one dispatcher forward-with-args-in-uri bug --- diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 94e5290..b327ade 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -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 );