#30589: urlize parses email addresses with apostrophes incorrectly
-------------------------------------------+------------------------
Reporter: Mark Gregson | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
In 1.11.21 I've observed that the urlize template tag messes up email
addresses containing apostrophes in the local part, specifically, it
excludes any characters before the apostrophe from the link text and href
attribute.
A simple example using django.utils.htmls.urlize:
{{{
>>> from django.utils.html import urlize
>>> urlize("o'[email protected]")
u'o\'<a href="mailto:[email protected]">[email protected]</a>'
}}}
I would expect this to return:
{{{
u'<a href="mailto:o\'[email protected]">o\'[email protected]</a>'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30589>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.0c250280713d256ca43cfbcf5557d82f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.