Closed emildayan closed 3 years ago
PHP-Whois version: 4.0
PHP version: 7.3.0
Description IDN/Punycode domains are not returning any data.
How to reproduce
$resolver = Iodev\Whois\Factory::get()->createWhois(); $info = Iodev\Whois\Whois::create()->loadDomainInfo('öppettider.se');
Possible Solution BlockParser->parseResponse is failing on parseDomain. An ugly fix:
if (empty($data['domainName'])) { if (strpos($response->domain, 'xn--') !== false) { $data['domainName'] = $response->domain; } }
Fixed in https://github.com/io-developer/php-whois/commit/29df9d6ff74ab10138f632038d38400380ebbc5a
PHP-Whois version: 4.0
PHP version: 7.3.0
Description
IDN/Punycode domains are not returning any data.
How to reproduce
Possible Solution
BlockParser->parseResponse is failing on parseDomain. An ugly fix: