summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2011-12-08 21:42:26 +0800
committerJeremy Kerr <jk@ozlabs.org>2011-12-08 21:45:22 +0800
commita45a3fdfdb9706791ff36128399b302c4fa37c52 (patch)
treeb10456566934f66081b56177b80e2c56d889ac3d /lib
parentfa999187bfc23bc0d674875c554c360601f8f6b4 (diff)
downloadpatchwork-a45a3fdfdb9706791ff36128399b302c4fa37c52.tar.bz2
patchwork-a45a3fdfdb9706791ff36128399b302c4fa37c52.tar.xz
filters: handle utf-8 characters when building filter querystring
Currently, we build the filter querystring by passing the raw string to urllib.quote, which expects an encoded string. When the raw string (in this case, a unicode object) contains a unicode character, quote() raises a KeyError. This fixes the problem by encoding the parameter name and values to UTF-8 first. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions