From d965cdafc9a2c4ea76938edd0f4ae9b5f14bdc1f Mon Sep 17 00:00:00 2001 From: jordan Date: Sun, 12 Feb 2012 18:59:26 +0000 Subject: [PATCH] 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 --- forum/utils/pagination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5