Hi,
I have the same issue and the recommendation in PHP documentation is to change the FILTER_SANITIZE_STRING filter by htmlspecialchars() method (https://www.php.net/manual/en/filter.filters.sanitize.php). For this reason, I have a new patch with this implementation to review. If you have a question, please let me know.
Regards.Hi,
I have the same issue and the recommendation in PHP documentation is to change the FILTER_SANITIZE_STRING filter by htmlspecialchars() method (https://www.php.net/manual/en/filter.filters.sanitize.php). For this reason, I have a new patch with this implementation to review. If you have a question, please let me know.
Regards.Sorry I used the wrong constant, I updated the patch with the change.
Regards.- 🇨🇦Canada ryanrobinson_wlu
Same as https://www.drupal.org/project/h5p/issues/3364451 🐛 Deprecated code warning when inserting images Active which has a slightly different patch. Is there a preference between the two?
- Issue was unassigned.
This will need to be fixed in the upstream library: https://github.com/h5p/h5p-editor-php-library
Correction, this has already been fixed in the master branch of the library, but is not yet in a release.
Closing as duplicate of 🐛 Deprecated code warning when inserting images Active .