diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2011-12-08 21:42:26 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-12-08 21:45:22 +0800 |
commit | a45a3fdfdb9706791ff36128399b302c4fa37c52 (patch) | |
tree | b10456566934f66081b56177b80e2c56d889ac3d /lib | |
parent | fa999187bfc23bc0d674875c554c360601f8f6b4 (diff) | |
download | patchwork-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