Skip to content

Bug: $request->getVar('test', FILTER_VALIDATE_INT) does not work if the input is an array #3128

Description

@crustamet

I have this test here in my URL request

?relation%5Bid_roadmap%5D=test&relation%5Bid_roadmap_year%5D=NULL

$request->getVar('relation', FILTER_VALIDATE_INT);

does not do anything to the array
but if i make it for each it works

$request->getVar('relation[id_roadmap]', FILTER_VALIDATE_INT);
it validate correctly

I hope you fix even if the input request is an array pls.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions