[fix] hash plugin
commit40c552c11e25dc440781717260c053221f60920b
authorVenca24 <Vaclav.Zouzalik@seznam.cz>
dateSat 17 Mar 2018, 15:21 (9 years ago)
parent69e5a58
searx/plugins/hash_plugin.py+2−1
@@ -36,9 +36,10 @@ def post_search(request, search):
3636 # wrong query
3737 return True
3838
39− # end if the string is empty
4039 function, string = m.groups()
40+ function = str(function.decode('UTF-8')) # convert to string for python3
4141 if string.strip().__len__() == 0:
42+ # end if the string is empty
4243 return True
4344
4445 # select hash function