Bug #39019
closedt3lib_formmail: generates incorrect file upload error
100%
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)
Updated by Ernesto Baschny over 12 years ago
- 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!
Updated by Gerrit Code Review over 12 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12846
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/12846
Updated by Gerrit Code Review over 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/12846
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Gerrit Code Review almost 10 years ago
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
Updated by Ernesto Baschny almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 50 to 100
Applied in changeset ad91f0542fe82d55e38e73d27c14dc3c42929dff.