Skip to content

Commit

Permalink
Update RdapDns.php
Browse files Browse the repository at this point in the history
include period when checking domain ends with tld
  • Loading branch information
resohead authored Mar 14, 2023
1 parent 21db738 commit 8d7b307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RdapDns.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getServerForDomain(string $domain): ?string
$tlds = $tldServerProperties[0];

foreach ($tlds as $tld) {
if (str_ends_with($domain, $tld)) {
if (str_ends_with($domain, ".{$tld}")) {
return true;
}
}
Expand Down

0 comments on commit 8d7b307

Please sign in to comment.