修正Validate类的image方法

This commit is contained in:
thinkphp
2016-07-22 12:25:37 +08:00
parent a3de59f7d0
commit b54cc49d18

View File

@@ -710,7 +710,7 @@ class Validate
if ('jpeg' == $imageType) {
$imageType = 'jpg';
}
if (image_type_to_extension($type) != $imageType) {
if (image_type_to_extension($type, false) != $imageType) {
return false;
}
}