From 746a76360618afb76b90f1bcfa34918afd57f1c7 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 18 Jul 2016 17:43:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Validate=E7=9A=84fileSize?= =?UTF-8?q?=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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index 203eb944..1c43f80c 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -654,9 +654,6 @@ class Validate if (!($file instanceof \think\File)) { return false; } - if (is_string($rule)) { - $rule = explode(',', $rule); - } if (is_array($file)) { foreach ($file as $item) { if (!$item->checkSize($rule)) {