registered-domain-libs icon indicating copy to clipboard operation
registered-domain-libs copied to clipboard

Detect the registered domain for a given domain name in C, Perl and PHP, based on Mozillas effective TLD listing

Results 8 registered-domain-libs issues
Sort by recently updated
recently updated
newest added

Generating C code leads to ``` PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, string given in /Users/steve/3rd/registered-domain-libs/generateEffectiveTLDs.php:118 Stack trace: #0 /Users/steve/3rd/registered-domain-libs/generateEffectiveTLDs.php(118): array_keys('') #1...

Looks like *.cy was changed a couple years ago, the test suite https://raw.githubusercontent.com/publicsuffix/list/master/tests/test_psl.txt uses mm instead, so I changed the cy references to that and the tests pass.

The current coding style of PHP files caused some text (newlines and spaces) to be echoed. You could see an example from the PHP test script, which starts with an...

require_once("registered-domain-libs/effectiveTLDs.inc.php"); require_once("registered-domain-libs/regDomain.inc.php"); getRegisteredDomain('subdomain.domain.co.uk'); // this print "co.uk" getRegisteredDomain('subdomain.domain.co.uk', $tldTree); // this print "co.uk"

It seems any IDN can't get past the regexp in `regDomain.class.php`: if (!preg_match("/^([a-z0-9])(([a-z0-9-])*([a-z0-9]))*$/", $domPart)) return FALSE; If anybody's interested, the library could be augmented to support UTF8 letter characters by...

The closing tags at the end of the php files are causing a newline to be printed to stdout simply from including the library. PHP doesn't need the closing tag...

As mentioned in https://github.com/publicsuffix/list/pull/1872#issuecomment-1863614188 Multiple `psl` libraries share the same bug while handling wildcards. > I went over all the FOSS implementations in https://publicsuffix.org/learn/ , and I found 3 of...

Hi, is that normal that none of amazonaws.com hosts are found ? ex: kinesis.us-east-1.amazonaws.com each time it gives NULL bye Fred