X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=858c1ec579a6c7177e852ec3fbc30a864d7afdb6;hp=05101b93520cb969b3fe36a0c58e0b79a8a081ba;hb=4082e67814e85bc9820e56eb38e5e21511c0a5f8;hpb=855ed93153e2b0c0e88d9bb8f23822c914393048 diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index 05101b9..858c1ec 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -194,9 +194,10 @@ sub prepare_action { } # If not, move the last part path to args - unshift @args, pop @path; + my $arg = pop(@path); + $arg =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg; + unshift @args, $arg; } - s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg for @args; $c->log->debug( 'Path is "' . $c->req->match . '"' ) if ( $c->debug && $c->req->match );