Actions
Bug #95464
closedInvalid email address notification in BE form doesn't show correctly
Start date:
2021-10-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If a field in a BE form has the value "email" as configuration "eval" and an invalid email address is entered, the error message is not displayed correctly (see screenshot)
the checkValue_input_ValidateEmail method is in fact currently like this
protected function checkValue_input_ValidateEmail($value, &$set, string $table, $id) { if (GeneralUtility::validEmail($value)) { return; } $set = false; $this->log( $table, $id, SystemLogDatabaseAction::UPDATE, 0, SystemLogErrorClassification::SECURITY_NOTICE, '"%s" is not a valid e-mail address.', -1, [$this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:error.invalidEmail'), $value] ); }
while it should be like this
protected function checkValue_input_ValidateEmail($value, &$set, string $table, $id) { if (GeneralUtility::validEmail($value)) { return; } $set = false; $this->log( $table, $id, SystemLogDatabaseAction::UPDATE, 0, SystemLogErrorClassification::SECURITY_NOTICE, $this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:error.invalidEmail'), -1, [$value] ); }
Files
Actions