projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07d005
)
Encode list search queries with UTF-8
author
Magnus Hagander
<magnus@hagander.net>
Tue, 15 Jan 2013 07:46:36 +0000
(08:46 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 15 Jan 2013 07:47:06 +0000
(08:47 +0100)
Should fix exception when searching for non-ascii characters
pgweb/search/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/search/views.py
b/pgweb/search/views.py
index e84fe1ef6edbb78345267e01f8511dfb873558fd..94df63218da4ef7f05f9301d2a526e4e7bb380eb 100644
(file)
--- a/
pgweb/search/views.py
+++ b/
pgweb/search/views.py
@@
-154,7
+154,7
@@
def search(request):
# API. In the future, we probably want to do everything
# through a http API and merge hits, but that's for later
p = {
- 'q': query,
+ 'q': query
.encode('utf-8')
,
's': listsort,
}
if listid: