Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10169: don't accidentally try to redirect to "None" after post…

…ing a comment.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 752cc49a62f5e469abaef7eacbeeb1be3ae6400a 1 parent 2ec48a1
Jacob Kaplan-Moss authored April 07, 2009
2  django/contrib/comments/templates/comments/approve.html
@@ -7,7 +7,7 @@
7 7
   <h1>{% trans "Really make this comment public?" %}</h1>
8 8
   <blockquote>{{ comment|linebreaks }}</blockquote>
9 9
   <form action="." method="post">
10  
-    <input type="hidden" name="next" value="{{ next }}" id="next" />
  10
+    {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
11 11
     <p class="submit">
12 12
       <input type="submit" name="submit" value="{% trans "Approve" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
13 13
     </p>
2  django/contrib/comments/templates/comments/delete.html
@@ -7,7 +7,7 @@
7 7
 <h1>{% trans "Really remove this comment?" %}</h1>
8 8
   <blockquote>{{ comment|linebreaks }}</blockquote>
9 9
   <form action="." method="post">
10  
-    <input type="hidden" name="next" value="{{ next }}" id="next" />
  10
+    {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
11 11
     <p class="submit">
12 12
     <input type="submit" name="submit" value="{% trans "Remove" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
13 13
     </p>
2  django/contrib/comments/templates/comments/flag.html
@@ -7,7 +7,7 @@
7 7
 <h1>{% trans "Really flag this comment?" %}</h1>
8 8
   <blockquote>{{ comment|linebreaks }}</blockquote>
9 9
   <form action="." method="post">
10  
-    <input type="hidden" name="next" value="{{ next }}" id="next" />
  10
+    {% if next %}<input type="hidden" name="next" value="{{ next }}" id="next" />{% endif %}
11 11
     <p class="submit">
12 12
     <input type="submit" name="submit" value="{% trans "Flag" %}" /> or <a href="{{ comment.get_absolute_url }}">cancel</a>
13 13
     </p>

0 notes on commit 752cc49

Please sign in to comment.
Something went wrong with that request. Please try again.