From bcd63cbfb0590a2e2bed3e4beab3f467279ad3db Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Thu, 6 Nov 2008 19:49:24 +0000 Subject: Fixed #6160, #9111 -- Consistently apply conditional_escape to form errors and labels when outputing them as HTML. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9365 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/util.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/regressiontests/forms/util.py') diff --git a/tests/regressiontests/forms/util.py b/tests/regressiontests/forms/util.py index 68c082c114..845ddeaadb 100644 --- a/tests/regressiontests/forms/util.py +++ b/tests/regressiontests/forms/util.py @@ -49,4 +49,11 @@ u'' # Can take a non-string. >>> print ValidationError(VeryBadError()).messages + +# Escapes non-safe input but not input marked safe. +>>> example = 'Example of link: example' +>>> print ValidationError(example).messages + +>>> print ValidationError(mark_safe(example)).messages + """ -- cgit v1.3