Browse Source

[fix] hash plugin

Venca24 7 years ago
parent
commit
40c552c11e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/plugins/hash_plugin.py

+ 2 - 1
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