mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
Fixed #15683 -- Prevented escaped string to be needlessly marked safe twice in force_escape filter. Thanks tyrion for the initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -419,7 +419,7 @@ def force_escape(value):
|
||||
characters (as opposed to "escape", which marks the content for later
|
||||
possible escaping).
|
||||
"""
|
||||
return mark_safe(escape(value))
|
||||
return escape(value)
|
||||
|
||||
@register.filter("linebreaks", is_safe=True, needs_autoescape=True)
|
||||
@stringfilter
|
||||
|
||||
Reference in New Issue
Block a user