Permalink
Browse files

Added a check for the availability of dns_get_record()

  • Loading branch information...
1 parent 7333cc5 commit 37df0b353c7c9298d7dbbe1f4c3182cd2242ac3e @DaSourcerer DaSourcerer committed May 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 37df0b3

Please sign in to comment.