Package: python-werkzeug
Version: 0.6.2-1
Severity: important
Using werkzeug.utils.redirect does not work in case the url needs to be
quoted as the resulting location header will be quoted twice:
First in werkzeug.utils.redirect:
if isinstance(location, unicode):
from werkzeug.urls import iri_to_uri
location = iri_to_uri(location)
and later in get_wsgi_headers of the BaseResponse class:
location = headers.get('location')
if location is not None:
if isinstance(location, unicode):
location = iri_to_uri(location)
So at the end the URL of the redirect is not usable anymore as the result
of the first quoting is being quoted again.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.35.2-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-werkzeug depends on:
ii libjs-jquery 1.4.2-2 JavaScript library for dynamic web
ii python 2.6.5-12 interactive high-level object-orie
ii python-support 1.0.9 automated rebuilding support for P
Versions of packages python-werkzeug recommends:
ii python 2.6.5-12 interactive high-level object-orie
ii python-openssl 0.10-1 Python wrapper around the OpenSSL
ii python-simplejson 2.1.1-1 simple, fast, extensible JSON enco
Versions of packages python-werkzeug suggests:
ii ipython 0.10-2 enhanced interactive Python shell
pn python-genshi <none> (no description available)
pn python-lxml <none> (no description available)
ii python-memcache 1.45-1 pure python memcached client
ii python-pkg-resources 0.6.14-1 Package Discovery and Resource Acc
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]