Opened 10 years ago

Closed 8 years ago

#7334 closed (fixed)

URLField validator does not allow non-ASCII-Domains

Reported by: anonymous Owned by: nobody
Component: Validators Version: master
Severity: Keywords: punycode, url, validator
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Domains like http://www.mü are impossible to add in a URLField without writing direct punycode: the validator fails.

Possible suspects:


alnumurl_re = re.compile(r'^[-\w/]+$')


Change History (3)

comment:1 Changed 10 years ago by Thomas Kerpe

Triage Stage: UnreviewedDesign decision needed

How should this be handled? Allow Punycode-Domains by default or make them optional?
Maybe an attribute like punycode=False can disable the default behavior of allowing it?

comment:2 Changed 9 years ago by rlaager

Does the patch from #9764 solve this? If so, can this be marked as a duplicate of that one?

comment:3 Changed 8 years ago by Claude Paroz

Resolution: fixed
Status: newclosed

I confirm this has been fixed by other tickets. Closing.

Note: See TracTickets for help on using tickets.
Back to Top