mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 12:51:02 +00:00
[fix] hash plugin
This commit is contained in:
parent
69e5a58058
commit
40c552c11e
1 changed files with 2 additions and 1 deletions
|
@ -36,9 +36,10 @@ def post_search(request, search):
|
||||||
# wrong query
|
# wrong query
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# end if the string is empty
|
|
||||||
function, string = m.groups()
|
function, string = m.groups()
|
||||||
|
function = str(function.decode('UTF-8')) # convert to string for python3
|
||||||
if string.strip().__len__() == 0:
|
if string.strip().__len__() == 0:
|
||||||
|
# end if the string is empty
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# select hash function
|
# select hash function
|
||||||
|
|
Loading…
Reference in a new issue