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
Hi there,
This plugin uses the deprecated ( as of PHP 8.1.0 ) \facebook-for-woocommerce\includes\Framework\Helper.php line 141 and also lne 143.
According to PHP.net it should be replaced with htmlspecialchars() – https://www.php.net/manual/en/function.htmlspecialchars.php
Looking forward to an update on this issue.
Thank you!
public static function str_to_ascii( $string ) { // strip ASCII chars 32 and under $string = filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW ); // strip ASCII chars 127 and higher return filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH ); }
The text was updated successfully, but these errors were encountered:
Thanks for the report @bsahins, we'll update here when the fix is released.
Hey guys, any update on this? It's been a year and we're still getting the deprecated message.
Hi there,
This plugin uses the deprecated ( as of PHP 8.1.0 ) \facebook-for-woocommerce\includes\Framework\Helper.php line 141 and also lne 143.
According to PHP.net it should be replaced with htmlspecialchars() – https://www.php.net/manual/en/function.htmlspecialchars.php
Looking forward to an update on this issue.
Thank you!
public static function str_to_ascii( $string ) { // strip ASCII chars 32 and under $string = filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW ); // strip ASCII chars 127 and higher return filter_var( $string, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH ); }
The text was updated successfully, but these errors were encountered: