diff options
author | Venca24 <Vaclav.Zouzalik@seznam.cz> | 2018-03-17 15:21:26 +0100 |
---|---|---|
committer | Venca24 <Vaclav.Zouzalik@seznam.cz> | 2020-10-23 21:26:42 +0200 |
commit | 40c552c11e25dc440781717260c053221f60920b (patch) | |
tree | 3cc21b5ba56388af427504fa2117dc127c154c1d | |
parent | 69e5a580582c59ccddfffdc8b5ed3213b5c35836 (diff) | |
download | searxng-40c552c11e25dc440781717260c053221f60920b.tar.gz searxng-40c552c11e25dc440781717260c053221f60920b.zip |
[fix] hash plugin
-rw-r--r-- | searx/plugins/hash_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/plugins/hash_plugin.py b/searx/plugins/hash_plugin.py index 3612bab6b..7754763ca 100644 --- a/searx/plugins/hash_plugin.py +++ b/searx/plugins/hash_plugin.py @@ -36,9 +36,10 @@ def post_search(request, search): # wrong query return True - # end if the string is empty function, string = m.groups() + function = str(function.decode('UTF-8')) # convert to string for python3 if string.strip().__len__() == 0: + # end if the string is empty return True # select hash function |