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

array_filter with is_numeric, is_int, is_float should sanitize #2238

Open
kkmuffme opened this issue May 10, 2023 · 0 comments
Open

array_filter with is_numeric, is_int, is_float should sanitize #2238

kkmuffme opened this issue May 10, 2023 · 0 comments

Comments

@kkmuffme
Copy link

kkmuffme commented May 10, 2023

$ids = array_filter( $_POST['ids'], 'is_numeric' );

Even without wp_unslash (shouldn't report an error either)

Same when using is_int or is_float as callback

Probably fix is similar to #1679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant