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

PHP 8.1 - FILTER_SANITIZE_STRING filter deprecated #185

Open
sharpchi opened this issue Nov 21, 2023 · 2 comments
Open

PHP 8.1 - FILTER_SANITIZE_STRING filter deprecated #185

sharpchi opened this issue Nov 21, 2023 · 2 comments

Comments

@sharpchi
Copy link

The FILTER_SANITIZE_STRING option used in filter_input is deprecated since PHP 8.1

$field = filter_input(INPUT_POST, 'field', FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);

See docs for more info:
https://www.php.net/manual/en/filter.constants.php#constant.filter-sanitize-string

@otacke
Copy link
Contributor

otacke commented Nov 21, 2023

Yes, see #148

@thibsy
Copy link

thibsy commented Jun 17, 2024

Are there any update son this? Ran into the same issue...

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

3 participants