aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Hudson2009-09-11 14:55:02 -0700
committerRob Hudson2009-09-11 14:55:02 -0700
commit5aee4dfeb4aed0e34fbb8b2197b9ea7cc8cb062b (patch)
treee0373f1c76c5ab7ccebbe236678d469fa96bd90c
parent608e3ce3e79e3c2d073cf72d1071b71b324485ee (diff)
downloaddjango-debug-toolbar-5aee4dfeb4aed0e34fbb8b2197b9ea7cc8cb062b.tar.bz2
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.
-rw-r--r--debug_toolbar/templates/debug_toolbar/redirect.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/redirect.html b/debug_toolbar/templates/debug_toolbar/redirect.html
index 068fe8c..93dd67c 100644
--- a/debug_toolbar/templates/debug_toolbar/redirect.html
+++ b/debug_toolbar/templates/debug_toolbar/redirect.html
@@ -4,7 +4,7 @@
</head>
<body>
<h1>HttpResponseRedirect</h1>
-<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>." %}
</p>