-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fixes #721 Replace usage of FILTER_SANITIZE_STRING
#722
Conversation
@Tabrisrp I checked the PR and the issue described in the original issue is resolved. 👏 I'm seeing the following notices in the PHP Warning: Undefined array key "page" in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-views.php on line 468
PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-views.php on line 468 These are there both with PHP 8.1 & 8.2. To reproduce:
Can you please look into this? 🙏 |
FILTER_SANITIZE_STRING
FILTER_SANITIZE_STRING
@vmanthos Good catch, fixed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix, @Tabrisrp! 🙏
This is working as expected! 👍
Fixes #721
Replace usage of
FILTER_SANITIZE_STRING
byhtmlspecialchars()
, as per the official PHP docs recommendation.