cakephp/cakephp — pull request #1490 by dereuromark (2013-08-07 21:38:59+00:00)
Title: 2.4 mime

list($type, $charset) = explode(';', finfo_file($finfo, $this->pwd()));

Results sometimes in

Undefined offset: 1 in [/lib/Cake/Utility/File.php, line 560]

If an error occured for finfo_file() it can return false it seems.
Maybe that should be refactored?