You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my point of view af is the one and only tld in this url. It is wrong, obviously, but it is not the job of a url to validate tlds, domains and protocols. What would you expect to happen, that you get com as tld and af is thrown away?
Thank you for the links! I see your point. So basically it's about a new feature, like getPublicSuffix, since com.af is not a valid tld, but a tld with an extension / suffix.
I'll try to add this feature in the next few days.
At
public function parseHost($string)
you assume that the TLD is the piece after the last period.This assumption break in the case of
sub.domain.com.af
. One way to solve it is to check for valid values (co, com).The text was updated successfully, but these errors were encountered: