Browse files

Fixed escaping on redirects.

This needs a good test case and more thought for when there are query strings.
As it was, though, it was broken.
  • Loading branch information...
1 parent 608e3ce commit 5aee4dfeb4aed0e34fbb8b2197b9ea7cc8cb062b @robhudson robhudson committed Sep 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 debug_toolbar/templates/debug_toolbar/redirect.html
@@ -4,7 +4,7 @@
-<p>Location: <a href="{{ redirect_to|urlencode }}">{{ redirect_to }}</a></p>
+<p>Location: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p>
<p class="notice">
{% trans "The Django Debug Toolbar has intercepted a redirect to the above URL for debug viewing purposes. You can click the above link to continue with the redirect as normal. If you'd like to disable this feature, set the <code>DEBUG_TOOLBAR_CONFIG</code> dictionary's key <code>INTERCEPT_REDIRECTS</code> to <code>False</code>." %}

0 comments on commit 5aee4df

Please sign in to comment.