mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
fix empty colon in query from selecting Chinese
This commit is contained in:
parent
c2aaf6f992
commit
571ce9ff07
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue