3 slashes for Doxygen, 2 are enough for PHP ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
41db906dc4
commit
ba45a292c4
|
@ -398,7 +398,7 @@ function validate_url(&$url) {
|
|||
if(substr($url,0,4) != 'http')
|
||||
$url = 'http://' . $url;
|
||||
|
||||
// @TODO Really supress function outcomes? Why not find them + debug them?
|
||||
/// @TODO Really supress function outcomes? Why not find them + debug them?
|
||||
$h = @parse_url($url);
|
||||
|
||||
if((is_array($h)) && (dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR) || filter_var($h['host'], FILTER_VALIDATE_IP) )) {
|
||||
|
|
Loading…
Reference in a new issue