• Issue: Bundled library voku/portable-utf8 uses deprecated FILTER_SANITIZE_STRING

    File: assets/simple-html-dom/voku/portable-utf8/src/voku/helper/UTF8.php

    Location 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_STRING

    Issue: FILTER_SANITIZE_STRING is 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:

    1. Update the bundled portable-utf8 library to the latest version (already fixed upstream), OR
    2. Apply a patch to replace FILTER_SANITIZE_STRING with FILTER_SANITIZE_FULL_SPECIAL_CHARS

    Thanks,

    Didier.

You must be logged in to reply to this topic.