mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进activeUrl验证类型支持带参数验证
This commit is contained in:
@@ -507,6 +507,18 @@ class Validate
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验证是否为合格的域名或者IP 支持A,MX,NS,SOA,PTR,CNAME,AAAA,A6, SRV,NAPTR,TXT 或者 ANY类型
|
||||||
|
* @access protected
|
||||||
|
* @param mixed $value 字段值
|
||||||
|
* @param mixed $rule 验证规则
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
protected function activeUrl($value, $rule)
|
||||||
|
{
|
||||||
|
return checkdnsrr($value, $rule);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证时间和日期是否符合指定格式
|
* 验证时间和日期是否符合指定格式
|
||||||
* @access protected
|
* @access protected
|
||||||
|
|||||||
Reference in New Issue
Block a user