Skip to content

Commit

Permalink
using strpos instead
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Aug 16, 2020
1 parent 4feeb4b commit 0a6abbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hostname.php
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ public function isValid($value)
return true;
}

if (mb_strpos($value, '@') !== false) {
if (strpos($value, '@') !== false) {
$this->error(self::INVALID_HOSTNAME);
return false;
}
Expand Down

0 comments on commit 0a6abbb

Please sign in to comment.