Fix Plugin::Authorization::ACL + tests for the weird behavior it needs
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Dispatcher.pm
index d5bb455..3cb06ea 100644 (file)
@@ -251,10 +251,8 @@ sub _do_forward {
 
     no warnings 'recursion';
 
-    my $orig_args = $c->request->arguments();
-    $c->request->arguments($args);
+    local $c->request->{arguments} = $args;
     $action->dispatch( $c );
-    $c->request->arguments($orig_args);
 
     return $c->state;
 }