diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-02 12:22:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-02 12:22:56 +0200 |
commit | d448b3a3675acf21c07fe8876b2dde0272645f93 (patch) | |
tree | 8eb10a8c558110a26b00d734173fc02eec08629b /ishtar_common | |
parent | bedc2f8b6f4c99df1840907f6803363c728b58a4 (diff) | |
download | Ishtar-d448b3a3675acf21c07fe8876b2dde0272645f93.tar.bz2 Ishtar-d448b3a3675acf21c07fe8876b2dde0272645f93.zip |
Search: fix double space crash (refs #4608)
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/views_item.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 1db0a84a4..0b0c61b86 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -499,6 +499,8 @@ def _parse_query_string(string, query_parameters, current_dct, exc_dct, if len(string) != 1: for reserved_char in RESERVED_CHAR: string = string.replace(reserved_char, u"") + if not string: + return "" if string.endswith(u'*'): if len(string.strip()) == 1: return u"" |