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

[BUGFIX] Avoid calling strlen(null) in FrontendUserAuthentication

GeneralUtility::_POST($this->formfield_permanent) returns
null if that field is not set in $_POST. Feeding null
to strlen() emits a E_DEPRECATED PHP 8.1 error. Sanitize
that call.

Change-Id: Ib2712ee04807f2853f6dc4b66c76293ce6e161e8
Resolves: #95765
Releases: master
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71967


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent c22da2db
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