summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/searx/search.py b/searx/search.py
index b6cf84e94..c16346f45 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -27,7 +27,7 @@ from searx.engines import (
categories, engines
)
from searx.languages import language_codes
-from searx.utils import gen_useragent
+from searx.utils import gen_useragent, get_blocked_engines
from searx.query import Query
from searx import logger
@@ -320,10 +320,7 @@ class Search(object):
self.lang = 'all'
# set blocked engines
- if request.cookies.get('blocked_engines'):
- self.blocked_engines = request.cookies['blocked_engines'].split(',') # noqa
- else:
- self.blocked_engines = []
+ self.blocked_engines = get_blocked_engines(engines, request.cookies)
self.results = []
self.suggestions = []