diff --git a/library/think/Validate.php b/library/think/Validate.php index 91707274..7f230db8 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -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; } }