Issue Bug Closed

#39019t3lib_formmail: generates incorrect file upload error

Ronald Eijkman 07/17/12, 11:54 updated 10/02/18, 12:17

Description

In t3lib/class.t3lib_formmail.php of TYPO3 4.5 and higher, file upload errors are checked with:

if ($_FILES[$variableName][‘tmp_name’][‘error’] !== UPLOAD_ERR_OK)

This always generates a syslog entry. This should be:

if ($_FILES[$variableName][‘error’] !== UPLOAD_ERR_OK)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.