Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changing File->info() to File->mime() in Validation::mimeType()

  • Loading branch information...
commit fea4ae65231a144f28b1d9a4f19ca302c5c3ac79 1 parent e3a6e9e
@burzum burzum authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Utility/Validation.php
View
4 lib/Cake/Utility/Validation.php
@@ -872,9 +872,9 @@ public static function mimeType($check, $mimeTypes = array()) {
}
$File = new File($check);
- $info = $File->info();
+ $mime = $File->mime();
- return in_array($info['mime'], $mimeTypes);
+ return in_array($mime, $mimeTypes);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.