X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTestApp%2FController%2FAction%2FChained.pm;h=051961cfd18edb7da5072703eb38bfe63f242f46;hb=372b0c1b8751c29e542dbc7624f11b8c99ef5742;hp=0efdcca8cd04ef830bf7fb1d64a4cf3b681d3e6d;hpb=626053191a3ba8c5f4ac8bd831009e962842c469;p=catagits%2FCatalyst-Runtime.git diff --git a/t/lib/TestApp/Controller/Action/Chained.pm b/t/lib/TestApp/Controller/Action/Chained.pm index 0efdcca..051961c 100644 --- a/t/lib/TestApp/Controller/Action/Chained.pm +++ b/t/lib/TestApp/Controller/Action/Chained.pm @@ -3,6 +3,8 @@ package TestApp::Controller::Action::Chained; use strict; use warnings; +use HTML::Entities; + use base qw/Catalyst::Controller/; sub begin :Private { } @@ -195,6 +197,13 @@ sub view : Chained('/') PathPart('chained') CaptureArgs(1) {} sub star_search : Chained('view') PathPart('search') Args(0) { } sub doc_star : Chained('/') PathPart('chained/doc') Args(1) {} +sub return_arg : Chained('/') PathPart('chained/return_arg') Args(1) {} +sub return_arg_decoded : Chained('/') PathPart('chained/return_arg_decoded') Args(1) { + my ($self, $c) = @_; + $c->req->args([ map { decode_entities($_) } @{ $c->req->args }]); +} + + sub end :Private { my ($self, $c) = @_; return if $c->stash->{no_end};