Skip to content

Commit

Permalink
Fix checking host name with www
Browse files Browse the repository at this point in the history
  • Loading branch information
misagh authored Feb 9, 2023
1 parent 9401429 commit 25c39d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validations/EmailHostValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function getResultResponse(): bool
{
$hostName = $this->getEmailAddress()->getHostPart();
if ($hostName) {
return ($this->getHostByName($hostName) !== $hostName) || ($this->getHostByName('www.' . $hostName) !== $hostName);
return ($this->getHostByName($hostName) !== $hostName) || ($this->getHostByName('www.' . $hostName) !== 'www.' . $hostName);
}

return false; // @codeCoverageIgnore
Expand Down

0 comments on commit 25c39d4

Please sign in to comment.