Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a check for the availability of dns_get_record()

  • Loading branch information...
commit 37df0b353c7c9298d7dbbe1f4c3182cd2242ac3e 1 parent 7333cc5
@DaSourcerer DaSourcerer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  framework/validators/CEmailValidator.php
View
2  framework/validators/CEmailValidator.php
@@ -85,7 +85,7 @@ public function validateValue($value)
$domain=rtrim(substr($value,strpos($value,'@')+1),'>');
if($valid && $this->checkMX && function_exists('checkdnsrr'))
$valid=checkdnsrr($domain,'MX');
- if($valid && $this->checkPort && function_exists('fsockopen'))
+ if($valid && $this->checkPort && function_exists('fsockopen') && function_exists('dns_get_record'))
$valid=$this->checkMxPorts($domain);
return $valid;
}
Please sign in to comment.
Something went wrong with that request. Please try again.