改进验证类的activeUrl方法 改进Query类分页方法的参数绑定

This commit is contained in:
thinkphp
2016-10-21 17:36:09 +08:00
parent afa1376941
commit 5a417480a1
2 changed files with 4 additions and 1 deletions

View File

@@ -612,6 +612,9 @@ class Validate
*/
protected function activeUrl($value, $rule)
{
if (!in_array($rule, ['A', 'MX', 'NS', 'SOA', 'PTR', 'CNAME', 'AAAA', 'A6', 'SRV', 'NAPTR', 'TXT', 'ANY'])) {
$rule = 'MX';
}
return checkdnsrr($value, $rule);
}