From: jordan Date: Sun, 12 Feb 2012 18:59:26 +0000 (+0000) Subject: escape pagination parameters correctly, messed search when quotation was inserted X-Git-Tag: live~88 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/d965cdafc9a2c4ea76938edd0f4ae9b5f14bdc1f escape pagination parameters correctly, messed search when quotation was inserted git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1229 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/utils/pagination.py b/forum/utils/pagination.py index a18bb32..67e2272 100644 --- a/forum/utils/pagination.py +++ b/forum/utils/pagination.py @@ -17,7 +17,7 @@ def generate_uri(querydict, exclude=None): for k, l in querydict.iterlists(): if (not exclude) or (not k in exclude): - all += ["%s=%s" % (k, escape(strip_tags(v))) for v in l] + all += ["%s=%s" % (k, escape(urlquote(strip_tags(v)))) for v in l] return "&".join(all)