Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Validator] add domain test for windows check dns #27559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Next Next commit
add point on host for windows check dns
  • Loading branch information
oliviervangest committed Jun 8, 2018
commit 7a42c3ed38a09a20da7febb9c75fa1814f45ec6e
4 changes: 4 additions & 0 deletions src/Symfony/Component/Validator/Constraints/EmailValidator.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public function validate($value, Constraint $constraint)

$host = (string) substr($value, strrpos($value, '@') + 1);

if ('.' !== substr($host, -1)) {
$host .= '.';
}

// Check for host DNS resource records
if ($constraint->checkMX) {
if (!$this->checkMX($host)) {
Expand Down