Validate类的confirm验证改为恒等判断

This commit is contained in:
thinkphp
2017-01-04 11:00:35 +08:00
parent 7fa018ca0c
commit 5b97e178fa

View File

@@ -435,7 +435,7 @@ class Validate
$rule = $field . '_confirm';
}
}
return $this->getDataValue($data, $rule) == $value;
return $this->getDataValue($data, $rule) === $value;
}
/**