##// END OF EJS Templates
search: remove excesive quoting on search pagination....
dan -
r4280:4c0a23db default
parent child Browse files
Show More
@@ -60,11 +60,10 b' def perform_search(request, tmpl_context'
60 errors = e.children
60 errors = e.children
61
61
62 def url_generator(page_num):
62 def url_generator(page_num):
63 q = urllib.quote(safe_str(search_query))
64
63
65 query_params = {
64 query_params = {
66 'page': page_num,
65 'page': page_num,
67 'q': q,
66 'q': safe_str(search_query),
68 'type': safe_str(search_type),
67 'type': safe_str(search_type),
69 'max_lines': search_max_lines,
68 'max_lines': search_max_lines,
70 'sort': search_sort
69 'sort': search_sort
@@ -72,7 +71,6 b' def perform_search(request, tmpl_context'
72
71
73 return '?' + urllib.urlencode(query_params)
72 return '?' + urllib.urlencode(query_params)
74
73
75
76 c = tmpl_context
74 c = tmpl_context
77 search_query = search_params.get('search_query')
75 search_query = search_params.get('search_query')
78 search_type = search_params.get('search_type')
76 search_type = search_params.get('search_type')
General Comments 0
You need to be logged in to leave comments. Login now