From 5b97e178faf32cd74db44bed3f7c7812163ed576 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 4 Jan 2017 11:00:35 +0800 Subject: [PATCH] =?UTF-8?q?Validate=E7=B1=BB=E7=9A=84confirm=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=94=B9=E4=B8=BA=E6=81=92=E7=AD=89=E5=88=A4=E6=96=AD?= 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 03f19017..e3bc9db6 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -435,7 +435,7 @@ class Validate $rule = $field . '_confirm'; } } - return $this->getDataValue($data, $rule) == $value; + return $this->getDataValue($data, $rule) === $value; } /**