Changeset 1812

Show
Ignore:
Timestamp:
01/25/08 14:02:26 (6 months ago)
Author:
armen
Message:

Fixing #340, Thanks nrm!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/libraries/Validation.php

    r1808 r1812  
    496496                        return empty($this->errors); 
    497497                } 
    498  
    499                 // Validate the uploaded file 
    500                 if ( ! isset($data['tmp_name']) OR ! is_uploaded_file($data['tmp_name'])) 
    501                         return FALSE; 
    502498 
    503499                // Parse addition parameters 
     
    595591                } 
    596592 
     593                // Validate the uploaded file 
     594                if ( ! isset($data['tmp_name']) OR ! is_uploaded_file($data['tmp_name'])) 
     595                        return FALSE;         
     596 
    597597                if ($maxsize['file'] AND $data['size'] > $maxsize['file']) 
    598598                {