]> git.ozlabs.org Git - patchwork/commit
filters: fix exception in filter querystring generation
authorJeremy Kerr <jk@ozlabs.org>
Thu, 8 May 2014 05:53:09 +0000 (13:53 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 3 Jun 2014 13:43:19 +0000 (21:43 +0800)
commita8219f8be78ad8faaa5ebcc91b5ec30b56b328e9
treebb0ac1bfdafe2b25c7db99d3bc154fb51e0839c5
parent1d46858f7ee46c5f2e052292cf84863b76b06e04
filters: fix exception in filter querystring generation

We get a silent (as it's during template render) exception when
generating filter querystrings, as we're passing a list to the string
format operator rather than a tuple.

This change removes the map and explicitly applies sanitise to the
(name, value) pair.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/filters.py