X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController.pm;h=1442649c959c96c54edbda870969677ce1297ec0;hb=676bed72afa0c79b9f26e1d548a49dbfb6ea15c7;hp=892f642112d6fd2380eb1805282a83c6625cedf4;hpb=bb48c5566ee0170fd913574d2393f381d214f86c;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index 892f642..1442649 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -321,7 +321,9 @@ sub _parse_attrs { %raw_attributes = ( %raw_attributes, - exists $actions_config->{$name} ? %{ $actions_config->{$name } } : (), + # Note we deep copy array refs here to stop crapping on config + # when attributes are parsed. RT#65463 + exists $actions_config->{$name} ? map { ref($_) eq 'ARRAY' ? [ @$_ ] : $_ } %{ $actions_config->{$name } } : (), ); # Private actions with additional attributes will raise a warning and then