FILTER_SANITIZE_STRING deprecated
-
Issue: Bundled library
voku/portable-utf8uses deprecatedFILTER_SANITIZE_STRINGFile:
assets/simple-html-dom/voku/portable-utf8/src/voku/helper/UTF8.phpLocation 1 – Line 1797:
public static function file_get_contents( string $filename, // ... parameters ... ) { // init $filename = \filter_var($filename, \FILTER_SANITIZE_STRING); // LINE 1797 // ... }Location 2 – Lines 1951 & 2007: These are in code comments/examples showing usage of
FILTER_SANITIZE_STRINGIssue:
FILTER_SANITIZE_STRINGis deprecated in PHP 8.1 and removed in PHP 8.2+Note: The actual bug is in the bundled library
voku/portable-utf8. The CF7 Grid Layout author should:- Update the bundled
portable-utf8library to the latest version (already fixed upstream), OR - Apply a patch to replace
FILTER_SANITIZE_STRINGwithFILTER_SANITIZE_FULL_SPECIAL_CHARS
Thanks,
Didier.
- Update the bundled
You must be logged in to reply to this topic.