mirror of
https://github.com/searxng/searxng.git
synced 2025-12-27 14:10:00 +00:00
Merge pull request #2454 from MarcAbonce/fix-empty-lang-bang
Fix empty colon in query from selecting Chinese
This commit is contained in:
@@ -77,7 +77,7 @@ class RawTextQuery:
|
||||
pass
|
||||
|
||||
# this force a language
|
||||
if query_part[0] == ':':
|
||||
if query_part[0] == ':' and len(query_part) > 1:
|
||||
lang = query_part[1:].lower().replace('_', '-')
|
||||
|
||||
# check if any language-code is equal with
|
||||
|
||||
Reference in New Issue
Block a user