summaryrefslogtreecommitdiff
path: root/searx/webadapter.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webadapter.py')
-rw-r--r--searx/webadapter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webadapter.py b/searx/webadapter.py
index 00dead2a9..dbcf25058 100644
--- a/searx/webadapter.py
+++ b/searx/webadapter.py
@@ -63,7 +63,7 @@ def parse_lang(preferences: Preferences, form: Dict[str, str], raw_text_query: R
query_lang = preferences.get_value('language')
# check language
- if not VALID_LANGUAGE_CODE.match(query_lang):
+ if not VALID_LANGUAGE_CODE.match(query_lang) and query_lang != 'auto':
raise SearxParameterException('language', query_lang)
return query_lang