Code

Opened 2 years ago

Closed 2 years ago

#17633 closed Uncategorized (duplicate)

Invalid IDNA domains in email addresses passed to urlize raises exception

Reported by: lamby 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

Description

    >>> from django.utils.html import urlize
    >>> urlize('lol@dongs..com')
    [...]

    UnicodeError: label empty or too long

ie. Calls str.encode('idna') without a try-except block. Regression from https://code.djangoproject.com/changeset/17348 I think.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.