Project

General

Profile

Actions

Bug #39019

closed

t3lib_formmail: generates incorrect file upload error

Added by Ronald Eijkman over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2012-07-17
Due date:
% Done:

100%

Estimated time:
0.01 h
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF