summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2021-01-09 22:11:41 -0700
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2021-01-09 22:11:41 -0700
commit571ce9ff07e9f8522ad4e770699f8347ba8935f2 (patch)
tree78c4599da7b179d492fab5ba1c9ed76f16c52984 /searx/query.py
parentc2aaf6f99276022a7e268fdb4dc29ce33a774813 (diff)
downloadsearxng-571ce9ff07e9f8522ad4e770699f8347ba8935f2.tar.gz
searxng-571ce9ff07e9f8522ad4e770699f8347ba8935f2.zip
fix empty colon in query from selecting Chinese
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py
index e61e24f2c..38cb03ffe 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -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