Django

Code

Ticket #6279 (closed: fixed)

Opened 9 months ago

Last modified 7 months ago

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

Reported by: ishirav@yahoo.com Assigned to: nobody
Milestone: Component: Template system
Version: SVN Keywords: urlize
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

urlize.diff (2.3 kB) - added by Rob Hudson <treborhudson@gmail.com> on 12/28/07 16:52:07.
Adding a patch and regression test

Change History

12/28/07 16:52:07 changed by Rob Hudson <treborhudson@gmail.com>

  • attachment urlize.diff added.

Adding a patch and regression test

01/06/08 21:55:53 changed by Simon Greenhill <dev@simon.net.nz>

  • needs_better_patch changed.
  • has_patch set to 1.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

02/03/08 02:54:27 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(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.


Add/Change #6279 (urlize doesn't escape greater-than and less-than signs surrounding email address)




Change Properties
Action