Skip to content

UrlParse, TLD not consistent when TLD is like co.nz #1

@jimasun

Description

@jimasun

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions