Changeset 3168 for trunk/system/libraries/Captcha.php
- Timestamp:
- 07/20/2008 08:34:36 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/Captcha.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/Captcha.php
r3160 r3168 105 105 self::$config['background'] = str_replace('\\', '/', realpath($config['background'])); 106 106 107 if ( ! file_exists(self::$config['background']))107 if ( ! is_file(self::$config['background'])) 108 108 throw new Kohana_Exception('captcha.file_not_found', self::$config['background']); 109 109 } … … 116 116 foreach ($config['fonts'] as $font) 117 117 { 118 if ( ! file_exists(self::$config['fontpath'].$font))118 if ( ! is_file(self::$config['fontpath'].$font)) 119 119 throw new Kohana_Exception('captcha.file_not_found', self::$config['fontpath'].$font); 120 120 }
