io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
437 stars 117 forks source link

Wrong registrar on .pl domains #177

Open bessone opened 2 years ago

bessone commented 2 years ago

PHP-Whois version: 4.1.4

Description
For Polish domains (.pl) the registrar is not recognized correctly. Instead of taking the company name, the last line of the block, i.e. the fax number or whois url is taken.

How to reproduce
Just do the whois of these domains and get the registrant:

Possible Solution
I don't think it's a problem of the regular expression, but of how the single lines are looped to retrieve the various blocks. I took a look but couldn't figure out where to work and fix it.