X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/5960a749b88d64b2d0587e090d3f47be554d4f9d..9f2913c2565411c1bb8de79a9e7d17e441c9b409:/forum/views/readers.py diff --git a/forum/views/readers.py b/forum/views/readers.py index f756a94..6e75b37 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -120,9 +120,9 @@ def search(request): if not keywords: return HttpResponseRedirect(reverse(index)) if search_type == 'tag': - return HttpResponseRedirect(reverse('tags') + '?q=%s' % (keywords.strip())) + return HttpResponseRedirect(reverse('tags') + '?q=%s' % urlquote(keywords.strip())) elif search_type == "user": - return HttpResponseRedirect(reverse('users') + '?q=%s' % (keywords.strip())) + return HttpResponseRedirect(reverse('users') + '?q=%s' % urlquote(keywords.strip())) elif search_type == "question": return question_search(request, keywords) else: