Changeset 2621
- Timestamp:
- 05/05/2008 04:45:17 AM (5 months ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/mimes.php (modified) (1 diff)
-
core/Kohana.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/mimes.php
r1766 r2621 53 53 'jpe' => array('image/jpeg', 'image/pjpeg'), 54 54 'js' => array('application/x-javascript'), 55 'json' => array('application/json'),55 'json' => array('application/json'), 56 56 'lha' => array('application/octet-stream'), 57 57 'log' => array('text/plain', 'text/x-log'), -
trunk/system/core/Kohana.php
r2620 r2621 167 167 } 168 168 169 // To validate the filename extension170 $ext = -(strlen(EXT));171 172 169 foreach ($hooks as $hook) 173 170 { 174 if (substr($hook, $ext) === EXT) 171 // Validate the filename extension 172 if (substr($hook, -(strlen(EXT))) === EXT) 175 173 { 176 174 // Hook was found, include it … … 965 963 $keys = explode('.', $keys); 966 964 967 // Create reference t hethe array965 // Create reference to the array 968 966 $row =& $array; 969 967
