Skip to content

Commit

Permalink
Fixed escaping on redirects.
Browse files Browse the repository at this point in the history
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
robhudson committed Sep 11, 2009
1 parent 608e3ce commit 5aee4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug_toolbar/templates/debug_toolbar/redirect.html
Expand Up @@ -4,7 +4,7 @@
</head> </head>
<body> <body>
<h1>HttpResponseRedirect</h1> <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"> <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>." %} {% 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> </p>
Expand Down

0 comments on commit 5aee4df

Please sign in to comment.