X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=ca5bc2527b493686ca1a235f2abcc578820e7f03;hb=de19de2e6f40d9f8986df5e4f37dc8084a7c83ee;hp=7f201c2c64096c78fe39b702cb216630aebaafa7;hpb=1cf0345be8d7bf7cd33467da529885068db2b710;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 7f201c2..ca5bc25 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -282,7 +282,7 @@ sub prepare_action { unshift @args, $arg; } - s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg for @{$c->req->captures||[]}; + s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg for grep { defined } @{$c->req->captures||[]}; $c->log->debug( 'Path is "' . $c->req->match . '"' ) if ( $c->debug && $c->req->match );