X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/ecd9fa68ea62902f79744b458e4ea2ed95ce00ac..9f2913c2565411c1bb8de79a9e7d17e441c9b409:/forum/views/readers.py?ds=sidebyside 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: