Changeset 1277

Show
Ignore:
Timestamp:
11/26/2007 12:43:18 PM (11 months ago)
Author:
Shadowhand
Message:

Fixing #234, thanks Maxximus!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/Validation.php

    r1270 r1277  
    528528                if (empty($allowed)) 
    529529                        throw new Kohana_Exception('upload.set_allowed'); 
     530 
     531                // Make sure that UPLOAD_ERR_EXTENSION is defined 
     532                defined('UPLOAD_ERR_EXTENSION') or define('UPLOAD_ERR_EXTENSION', 8); 
    530533 
    531534                // Fetch the real upload path