Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
crustamet opened this issue Jun 19, 2020 · 1 comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@crustamet
Copy link
Contributor

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.

@crustamet crustamet added the bug Verified issues on the current code behavior or pull requests that will fix them label Jun 19, 2020
@crustamet
Copy link
Contributor Author

crustamet commented Jun 19, 2020

Maybe is the wanted result to not apply the filter on all the array ? please tell me so i can change my code..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

1 participant