Opened 8 years ago

Closed 8 years ago

#16070 closed Bug (duplicate)

Urlize improperly quotes %

Reported by: mitch@… Owned by: nobody
Component: Template system Version: 1.3
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


If urlize is given a URL with a percent sign in it, it will quote it:

from django.utils.html import urlize

u'<a href=""></a>'

Which breaks links that are already percent sign quoted. Should % be passed in to urlquote as a safe character to prevent this? Or should it be an option? I am using urlize on user generated input, and links they insert with %'s in them are broken.

Change History (1)

comment:1 Changed 8 years ago by Dougal Matthews

Resolution: duplicate
Status: newclosed

Duplication of #9655

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