diff options
| author | Philip Zeyliger | 2009-05-02 00:46:02 +0800 | 
|---|---|---|
| committer | Rob Hudson | 2009-06-16 03:39:27 +0800 | 
| commit | 4dc0710b6a5eedec0448909f6b90e55a4f3555d4 (patch) | |
| tree | b037c85fa1ad4dac987c4c203481e557f6f602ab | |
| parent | c9cbbb4c5b636676674379367f072c08c0e78f84 (diff) | |
| download | django-debug-toolbar-4dc0710b6a5eedec0448909f6b90e55a4f3555d4.tar.bz2 | |
Captured redirection requests must be urlencoded.
I ran into this when I had a URL with a ? (%3F) mark in it.
Signed-off-by: Rob Hudson <rob@tastybrew.com>
| -rw-r--r-- | debug_toolbar/templates/debug_toolbar/redirect.html | 2 | 
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 afdccc4..1f5c84b 100644 --- a/debug_toolbar/templates/debug_toolbar/redirect.html +++ b/debug_toolbar/templates/debug_toolbar/redirect.html @@ -3,7 +3,7 @@  </head>  <body>  <h1>HttpResponseRedirect</h1> -<p>Location: <a href="{{ redirect_to }}">{{ redirect_to }}</a></p> +<p>Location: <a href="{{ redirect_to|urlencode }}">{{ redirect_to }}</a></p>  <p class="notice">  	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  | 
