Opened 17 years ago
Closed 15 years ago
#7334 closed (fixed)
URLField validator does not allow non-ASCII-Domains
| Reported by: | anonymous | Owned by: | nobody |
|---|---|---|---|
| Component: | Validators | Version: | dev |
| 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: | no | UI/UX: | no |
Description
Domains like http://www.müller.de/ are impossible to add in a URLField without writing direct punycode:
http://www.xn--mller-kva.de/ the validator fails.
Possible suspects:
django.core.validators:
alnumurl_re = re.compile(r'^[-\w/]+$')
isAlphaNumericURL()
Change History (3)
comment:1 by , 17 years ago
| Triage Stage: | Unreviewed → Design decision needed |
|---|
comment:2 by , 16 years ago
Does the patch from #9764 solve this? If so, can this be marked as a duplicate of that one?
comment:3 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
I confirm this has been fixed by other tickets. Closing.
Note:
See TracTickets
for help on using tickets.
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?