From 5cc93500e88794342adcc738fd4d7bb6f40330c6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 10 Sep 2008 05:14:59 +0000 Subject: [PATCH] Fixed #8959 -- Removed redundant calls to the 'escape' template filter in the django.contrib.comments templates. Thanks, zgoda git-svn-id: http://code.djangoproject.com/svn/django/trunk@9000 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../contrib/comments/templates/comments/approve.html | 6 +++--- django/contrib/comments/templates/comments/delete.html | 6 +++--- django/contrib/comments/templates/comments/flag.html | 6 +++--- .../comments/templates/comments/moderation_queue.html | 10 +++++----- .../contrib/comments/templates/comments/preview.html | 4 ++-- .../comments/templates/comments/reply_preview.html | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/django/contrib/comments/templates/comments/approve.html b/django/contrib/comments/templates/comments/approve.html index 18157b77f9..1f1d1f4090 100644 --- a/django/contrib/comments/templates/comments/approve.html +++ b/django/contrib/comments/templates/comments/approve.html @@ -4,11 +4,11 @@ {% block content %}

Really make this comment public?

-
{{ comment|escape|linebreaks }}
+
{{ comment|linebreaks }}
- +

or cancel

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/django/contrib/comments/templates/comments/delete.html b/django/contrib/comments/templates/comments/delete.html index 6486951a07..eb5406eee5 100644 --- a/django/contrib/comments/templates/comments/delete.html +++ b/django/contrib/comments/templates/comments/delete.html @@ -4,11 +4,11 @@ {% block content %}

Really remove this comment?

-
{{ comment|escape|linebreaks }}
+
{{ comment|linebreaks }}
- +

or cancel

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/django/contrib/comments/templates/comments/flag.html b/django/contrib/comments/templates/comments/flag.html index b6090e63c3..2a65ab379c 100644 --- a/django/contrib/comments/templates/comments/flag.html +++ b/django/contrib/comments/templates/comments/flag.html @@ -4,11 +4,11 @@ {% block content %}

Really flag this comment?

-
{{ comment|escape|linebreaks }}
+
{{ comment|linebreaks }}
- +

or cancel

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/django/contrib/comments/templates/comments/moderation_queue.html b/django/contrib/comments/templates/comments/moderation_queue.html index b5519dfab1..2a45757e6e 100644 --- a/django/contrib/comments/templates/comments/moderation_queue.html +++ b/django/contrib/comments/templates/comments/moderation_queue.html @@ -53,17 +53,17 @@ - {{ comment.name|escape }} - {{ comment.comment|truncatewords:"50"|escape }} - {{ comment.email|escape }} - {{ comment.url|escape }} + {{ comment.name }} + {{ comment.comment|truncatewords:"50" }} + {{ comment.email }} + {{ comment.url }} {% if comment.user %}yes{% else %}no{% endif %} - {{ comment.ip_address|escape }} + {{ comment.ip_address }} {{ comment.submit_date|date:"F j, P" }} {% endfor %} diff --git a/django/contrib/comments/templates/comments/preview.html b/django/contrib/comments/templates/comments/preview.html index 50ed6d6fce..fd2571335a 100644 --- a/django/contrib/comments/templates/comments/preview.html +++ b/django/contrib/comments/templates/comments/preview.html @@ -9,7 +9,7 @@

Please correct the error{{ form.errors|pluralize }} below

{% else %}

Preview your comment

-
{{ comment|escape|linebreaks }}
+
{{ comment|linebreaks }}

and or make changes:

@@ -31,4 +31,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/django/contrib/comments/templates/comments/reply_preview.html b/django/contrib/comments/templates/comments/reply_preview.html index b566110bcb..fd2571335a 100644 --- a/django/contrib/comments/templates/comments/reply_preview.html +++ b/django/contrib/comments/templates/comments/reply_preview.html @@ -9,7 +9,7 @@

Please correct the error{{ form.errors|pluralize }} below

{% else %}

Preview your comment

-
{{ comment|escape|linebreaks }}
+
{{ comment|linebreaks }}

and or make changes: