Opened 16 years ago

Closed 16 years ago

#6279 closed (fixed)

urlize doesn't escape greater-than and less-than signs surrounding email address

Reported by: ishirav@… Owned by: nobody
Component: Template system Version: dev
Severity: Keywords: urlize
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

Description

When you give urlize (with autoescape) an email address surrounding by greater-than and less-than signs like this:

<kuku@gmail.com>

it converts the mail address to a link, but doesn't escape the surrounding greater-than and less-than signs.

Attachments (1)

urlize.diff (2.3 KB ) - added by Rob Hudson <treborhudson@…> 16 years ago.
Adding a patch and regression test

Download all attachments as: .zip

Change History (3)

by Rob Hudson <treborhudson@…>, 16 years ago

Attachment: urlize.diff added

Adding a patch and regression test

comment:1 by Simon Greenhill <dev@…>, 16 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:2 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [7079]) Fixed #6279, #6514 -- Fixed some HTML escaping problems in the urlize filter.
Based on a patch from SmileyChris with some test additions from Rob Hudson.
Thanks, both.

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