Project

General

Profile

Bug #20779 » 11577.patch

Administrator Admin, 2009-07-23 14:59

View differences:

t3lib/class.t3lib_formmail.php (working copy)
for ($a=0;$a<10;$a++) {
$varname = 'attachment'.(($a)?$a:'');
if (!is_uploaded_file($_FILES[$varname]['tmp_name'])) {
t3lib_div::sysLog('Possible abuse of t3lib_formmail: temporary file "'.$_FILES[$varname]['tmp_name'].'" ("'.$_FILES[$varname]['name'].'") was not an uploaded file.', 'Core', 3);
continue;
}
$theFile = t3lib_div::upload_to_tempfile($_FILES[$varname]['tmp_name']);
(1-1/2)