projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d730e04
)
Strip leading and trailing space from searches
author
Magnus Hagander
<magnus@hagander.net>
Tue, 20 Jun 2017 18:56:46 +0000
(20:56 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 20 Jun 2017 18:56:46 +0000
(20:56 +0200)
pgweb/search/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/search/views.py
b/pgweb/search/views.py
index b438bed33d05ee329602d2dac1f951439023920b..6fa479aec139c030fba933a1ac34e21ed6a4fa48 100644
(file)
--- a/
pgweb/search/views.py
+++ b/
pgweb/search/views.py
@@
-132,7
+132,7
@@
def search(request):
return render_to_response('search/sitesearch.html', {
'search_error': "No search term specified.",
}, RequestContext(request))
- query = request.GET['q']
+ query = request.GET['q']
.strip()
# Anti-stefan prevention
if len(query) > 1000: