Skip to content

PHP 8.1 Deprecation: Constant FILTER_SANITIZE_STRING is deprecated #2525

@dd32

Description

@dd32

Learn uses the FILTER_SANITIZE_STRING filter var quite commonly, as of PHP 8.1 this has been deprecated, as it doesn't do what most people assume it does. It looks like this is one of those cases.

https://www.php.net/manual/en/filter.filters.sanitize.php#:~:text=flags%20to%200.-,FILTER_SANITIZE_STRING,-%22string%22

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions