Skip to content
Snippets Groups Projects
Commit 8cc1e210 authored by Christian Kuhn's avatar Christian Kuhn Committed by Anja Leichsenring
Browse files

[BUGFIX] Avoid deprecated FILTER_SANITIZE_STRING in TextValidator

The filter_var() filter FILTER_SANITIZE_STRING is
deprecated as of PHP 8.1.

Extbase TextValidator uses it. Goal of the text
validator is to allow most 'casual' characters
and strings as long as they don't contain HTML.

The path switches to strip_tags() to validate.
Tests are refactored and extended to show more cases.

https://wiki.php.net/rfc/deprecations_php_8_1

Change-Id: Ifbf3de7a7200512d1281b694a7a6c2f8fb3ac781
Resolves: #95768
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71968


Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 3e27e566
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment