Opened 5 years ago

Closed 5 years ago

#17633 closed Uncategorized (duplicate)

Invalid IDNA domains in email addresses passed to urlize raises exception

Reported by: Chris Lamb Owned by: nobody
Component: Uncategorized Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


    >>> from django.utils.html import urlize
    >>> urlize('')

    UnicodeError: label empty or too long

ie. Calls str.encode('idna') without a try-except block. Regression from I think.

Change History (1)

comment:1 Changed 5 years ago by Claude Paroz

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

Thanks for the report, but this is known and a fix is ready for checkin in #17592.

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