Skip to content
This repository was archived by the owner on Nov 20, 2019. It is now read-only.

isValidDomain returns true for domains that are too long #23

Closed
getorca opened this issue Apr 11, 2018 · 1 comment
Closed

isValidDomain returns true for domains that are too long #23

getorca opened this issue Apr 11, 2018 · 1 comment
Labels

Comments

@getorca
Copy link

getorca commented Apr 11, 2018

$url = 'http://exam-plewdgrfWEDRKGJHBSAFVHBJKSDAVJKHBDSVJKHBSDJKBVFJHBDSJHBSDJKBVASDJKHBASDJKHBFJKADBSVCJKHBASDCJHBJHASBJUHBEJDHBJASBDHABSDMNBASJKBHJWQHBDMNASBDJHEWQRJHBAJSHBMANSBDJHQWEDJHBASMNDBMASNDBMBgwqe5vqwerfvcqw4vtwergfkhabdsvjkhbqerjkhbajskdbfcjkahsgbecauhsdeclkjhslkjadhfjkasberflkjazdklcklaDSJASNDKLNAKSDJNFKLAJSDJNASKNF.com';

$extract = new LayerShifter\TLDExtract\Extract();
$result = $extract->parse($url);
$domain = $result->getRegistrableDomain();
echo $result->isValidDomain();

will return TRUE when it should return FLASE

@layershifter
Copy link
Owner

Thanks for report, fixed in the latest release 1.2.4. Please check 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants