From 40c552c11e25dc440781717260c053221f60920b Mon Sep 17 00:00:00 2001 From: Venca24 Date: Sat, 17 Mar 2018 15:21:26 +0100 Subject: [PATCH] [fix] hash plugin --- searx/plugins/hash_plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/searx/plugins/hash_plugin.py b/searx/plugins/hash_plugin.py index 3612bab6..7754763c 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