SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001944SiT!outbound emailpublic2014-06-06 21:582014-06-15 18:27
ReporterFrans 
Assigned Topaulh 
PrioritylowSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformLinuxOScentOSOS Version2.6+later
Product Version3.67 LTS 
Target VersionFixed in VersionCurrent GIT 
Summary0001944: Program error in incident_email.
DescriptionThe 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
   }
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0004947)
paulh (administrator)
2014-06-15 18:25

Cheers Frans, good spot
User avatar (0004948)
paulh (administrator)
2014-06-15 18:27

efa9e07 and r7597 resolve this, many thanks again Frans

- Issue History
Date Modified Username Field Change
2014-06-06 21:58 Frans New Issue
2014-06-15 18:25 paulh Note Added: 0004947
2014-06-15 18:25 paulh Assigned To => paulh
2014-06-15 18:25 paulh Status new => confirmed
2014-06-15 18:27 paulh Note Added: 0004948
2014-06-15 18:27 paulh Status confirmed => resolved
2014-06-15 18:27 paulh Resolution open => fixed
2014-06-15 18:27 paulh Fixed in Version => Current GIT


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker