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; } /**