Bug #39019
closed
t3lib_formmail: generates incorrect file upload error
Added by Ronald Eijkman over 12 years ago.
Updated about 6 years ago.
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)
- Status changed from New to Accepted
- Assignee set to Ernesto Baschny
Good catch, the sysLoging is indeed incorrect. Also the order of logging is not right, because it will always incorrectly also report "Possible abuse of t3lib_formmail" in case there was an error uploading.
Will fix it ASAP, please wait to review it. Thanks!
- Status changed from Accepted to Under Review
- % Done changed from 0 to 50
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/12846
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/12846
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36256
- Status changed from Under Review to Resolved
- % Done changed from 50 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF