From d448b3a3675acf21c07fe8876b2dde0272645f93 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Jul 2019 12:22:56 +0200 Subject: Search: fix double space crash (refs #4608) --- ishtar_common/views_item.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/views_item.py') 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"" -- cgit v1.2.3