#17994: Markdown safe mode fails to return result if there's link in content --------------------------------+-------------------- Reporter: simonas@… | Owner: nobody Type: Bug | Status: new Component: contrib.markup | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------+-------------------- I have been using {{{ {{ comment.comment|markdown:"safe,nl2br"|nofollow }} }}} to render my comments and after moving to 1.4 I noticed that some comments fail to render.
After some testing I noticed that: 1. Only comments with links fail to render. 2. Safe mode is to blame (specifically [https://code.djangoproject.com/browser/django/trunk/django/contrib/markup/templatetags/markup.py?rev=17735#L79 this line]). Disabling it (or setting enable_attributes to True) fixes the problem. -- Ticket URL: <https://code.djangoproject.com/ticket/17994> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.