From eee3e8e5a7d49b2957b2eb21e1c557fb6eb2d8ac Mon Sep 17 00:00:00 2001 From: Claudio Mulas Date: Sat, 7 Mar 2015 01:00:52 +0100 Subject: [PATCH] Update Whois.php Some whois server needs a domain all lowercase. With a small change all errors are now fixed. --- src/Phois/Whois/Whois.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Phois/Whois/Whois.php b/src/Phois/Whois/Whois.php index 2740c4f..e98852a 100644 --- a/src/Phois/Whois/Whois.php +++ b/src/Phois/Whois/Whois.php @@ -17,7 +17,7 @@ class Whois */ public function __construct($domain) { - $this->domain = $domain; + $this->domain = strtolower($domain); // check $domain syntax and split full domain name on subdomain and TLDs if ( preg_match('/^([\p{L}\d\-]+)\.((?:[\p{L}\-]+\.?)+)$/ui', $this->domain, $matches)