Django

Code

Changeset 9000

Show
Ignore:
Timestamp:
09/10/08 00:14:59 (4 months ago)
Author:
adrian
Message:

Fixed #8959 -- Removed redundant calls to the 'escape' template filter in the django.contrib.comments templates. Thanks, zgoda

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/comments/templates/comments/approve.html

    r8557 r9000  
    55{% block content %} 
    66  <h1>Really make this comment public?</h1> 
    7   <blockquote>{{ comment|escape|linebreaks }}</blockquote> 
     7  <blockquote>{{ comment|linebreaks }}</blockquote> 
    88  <form action="." method="POST"> 
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 
     9    <input type="hidden" name="next" value="{{ next }}" id="next"> 
    1010    <p class="submit"> 
    1111      <input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a> 
  • django/trunk/django/contrib/comments/templates/comments/delete.html

    r8557 r9000  
    55{% block content %} 
    66  <h1>Really remove this comment?</h1> 
    7   <blockquote>{{ comment|escape|linebreaks }}</blockquote> 
     7  <blockquote>{{ comment|linebreaks }}</blockquote> 
    88  <form action="." method="POST"> 
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 
     9    <input type="hidden" name="next" value="{{ next }}" id="next"> 
    1010    <p class="submit"> 
    1111      <input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a> 
  • django/trunk/django/contrib/comments/templates/comments/flag.html

    r8557 r9000  
    55{% block content %} 
    66  <h1>Really flag this comment?</h1> 
    7   <blockquote>{{ comment|escape|linebreaks }}</blockquote> 
     7  <blockquote>{{ comment|linebreaks }}</blockquote> 
    88  <form action="." method="POST"> 
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next"> 
     9    <input type="hidden" name="next" value="{{ next }}" id="next"> 
    1010    <p class="submit"> 
    1111      <input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a> 
  • django/trunk/django/contrib/comments/templates/comments/moderation_queue.html

    r8557 r9000  
    5454            </form> 
    5555          </td> 
    56           <td>{{ comment.name|escape }}</td> 
    57           <td>{{ comment.comment|truncatewords:"50"|escape }}</td> 
    58           <td>{{ comment.email|escape }}</td> 
    59           <td>{{ comment.url|escape }}</td> 
     56          <td>{{ comment.name }}</td> 
     57          <td>{{ comment.comment|truncatewords:"50" }}</td> 
     58          <td>{{ comment.email }}</td> 
     59          <td>{{ comment.url }}</td> 
    6060          <td> 
    6161            <img 
     
    6464            /> 
    6565          </td> 
    66           <td>{{ comment.ip_address|escape }}</td> 
     66          <td>{{ comment.ip_address }}</td> 
    6767          <td>{{ comment.submit_date|date:"F j, P" }}</td> 
    6868        </tr> 
  • django/trunk/django/contrib/comments/templates/comments/preview.html

    r8557 r9000  
    1010    {% else %} 
    1111      <h1>Preview your comment</h1> 
    12       <blockquote>{{ comment|escape|linebreaks }}</blockquote> 
     12      <blockquote>{{ comment|linebreaks }}</blockquote> 
    1313      <p> 
    1414        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes: 
  • django/trunk/django/contrib/comments/templates/comments/reply_preview.html

    r8557 r9000  
    1010    {% else %} 
    1111      <h1>Preview your comment</h1> 
    12       <blockquote>{{ comment|escape|linebreaks }}</blockquote> 
     12      <blockquote>{{ comment|linebreaks }}</blockquote> 
    1313      <p> 
    1414        and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes: