|
|
@@ -191,7 +191,7 @@ class Zend_Validate_File_MimeType extends Zend_Validate_Abstract
|
|
|
$this->_magicfile = null;
|
|
|
require_once 'Zend/Validate/Exception.php';
|
|
|
throw new Zend_Validate_Exception('Magicfile can not be set. There is no finfo extension installed');
|
|
|
- } else if (!is_readable($file)) {
|
|
|
+ } else if (!is_file($file) || !is_readable($file)) {
|
|
|
require_once 'Zend/Validate/Exception.php';
|
|
|
throw new Zend_Validate_Exception('The given magicfile can not be read');
|
|
|
} else {
|