SiT! Bugs - SiT!
View Issue Details
0001944SiT!outbound emailpublic2014-06-06 21:582014-06-15 18:27
Frans 
paulh 
lowminoralways
resolvedfixed 
LinuxcentOS2.6+later
3.67 LTS 
Current GIT 
0001944: Program error in incident_email.
The size-check has a program error.
2014-06-06T12:51:05-03:00 incident_email.php Warning [2] trigger_error() expects at most 2 parameters, 3 given (in line ... of file incident_email.php)

Between size and filesize : has a comma instead of a point.
I checked in version 3.90 and I found the same error present in this file.

// Check file size before sending
if (filesize($filename) > $CONFIG['upload_max_filesize'] || filesize($filename) == FALSE)
      {
    trigger_error("User Error: Attachment too large or file upload error, filename: {$filename}, perms: ".fileperms($filename).", size:", filesize($filename), E_USER_WARNING);
   // throwing an error isn't the nicest thing to do for the user but there seems to be no way of
   // checking file sizes at the client end before the attachment is uploaded. - INL
   }
No tags attached.
Issue History
2014-06-06 21:58FransNew Issue
2014-06-15 18:25paulhNote Added: 0004947
2014-06-15 18:25paulhAssigned To => paulh
2014-06-15 18:25paulhStatusnew => confirmed
2014-06-15 18:27paulhNote Added: 0004948
2014-06-15 18:27paulhStatusconfirmed => resolved
2014-06-15 18:27paulhResolutionopen => fixed
2014-06-15 18:27paulhFixed in Version => Current GIT

Notes
(0004947)
paulh   
2014-06-15 18:25   
Cheers Frans, good spot
(0004948)
paulh   
2014-06-15 18:27   
efa9e07 and r7597 resolve this, many thanks again Frans