Opened 2 years ago

Closed 2 years ago

#17592 closed Bug (fixed)

urlize fails on this e-mail

Reported by: andrey@… Owned by: nobody
Component: Template system Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When in my template I use |urlize filter it throws UnicodeError when text contains email with starting-dot domain ""

Attachments (1)

17592.diff (1.4 KB) - added by claudep 2 years ago.
Catch UnicodeError in urlize

Download all attachments as: .zip

Change History (5)

comment:1 Changed 2 years ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Email seems invalid, but urlize shouldn't crash.

Changed 2 years ago by claudep

Catch UnicodeError in urlize

comment:2 Changed 2 years ago by claudep

  • Has patch set

comment:3 Changed 2 years ago by aaugustin

  • Triage Stage changed from Accepted to Ready for checkin

comment:4 Changed 2 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [17435]:

(The changeset message doesn't reference this ticket)

Add Comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.