Skip to content

Valid URLs detected as invalid #87

Description

@kdeltared

These two URLs should be valid, but validators doesn't like the double hyphen -- and it doesn't like the domain name xn--p1ai neither.

>>> validators.url("http://pharma--partners.com/bfayz/shit.exe")
ValidationFailure(func=url, args={'public': False, 'value': 'http://pharma--partners.com/bfayz/shit.exe'})
>>> validators.url("http://xn--k1acdflk8dk.xn--p1ai/daa4wb/")
ValidationFailure(func=url, args={'public': False, 'value': 'http://xn--k1acdflk8dk.xn--p1ai/daa4wb/'})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue: Works not as designedoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions