#12183: urlize doesn't always add rel=nofollow
-----------------------------+----------------------------------------------
Reporter: eronen | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 1 |
-----------------------------+----------------------------------------------
If the text passed to "urlize" template filter or django.utils.html.urlize
contains multiple URLs,
and one of them is a mailto: URL, then the URLs after the mailto URL will
not have rel=nofollow even
when you called urlize with nofollow=True.
Fix: Move the line "nofollow_attr = nofollow and ' rel="nofollow"' or ''"
inside the
for loop (one line downwards)
--
Ticket URL: <
http://code.djangoproject.com/ticket/12183>
Django <
http://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 post to this group, send email to
django-updates@...
To unsubscribe from this group, send email to
django-updates+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en-~----------~----~----~----~------~----~------~--~---