]> git.ozlabs.org Git - patchwork/commit
filters: quote param names and values when constructing querystrings
authorJeremy Kerr <jk@ozlabs.org>
Mon, 28 Feb 2011 06:43:31 +0000 (14:43 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 8 Mar 2011 04:41:18 +0000 (12:41 +0800)
commit5d56a58406cbc06012d1f1c994be4b5118ecda9c
tree9d19d32c2f55ea5f412e8db66497da1412ac1c41
parent14bb22b8de1b8eee9102159a34d8e2218a8a2bd6
filters: quote param names and values when constructing querystrings

Use urllib.quote to sanitise parameter names and values; prevents
escaped ampersands in the input qs from appearing unescaped in the
link output.

Add a testcase for the unescaped qs fragments

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/filters.py
apps/patchwork/tests/__init__.py
apps/patchwork/tests/filters.py [new file with mode: 0644]