unescape captures
Matt S Trout [Sun, 27 Aug 2006 13:27:56 +0000 (13:27 +0000)]
lib/Catalyst/Dispatcher.pm

index ff25f96..29cf4ec 100644 (file)
@@ -282,6 +282,8 @@ sub prepare_action {
         unshift @args, $arg;
     }
 
+    s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg for @{$c->req->captures||[]};
+
     $c->log->debug( 'Path is "' . $c->req->match . '"' )
       if ( $c->debug && $c->req->match );