From b54cc49d18ed1663b0da192a103d96554853d783 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 22 Jul 2016 12:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Validate=E7=B1=BB=E7=9A=84ima?= =?UTF-8?q?ge=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }