diff --git a/api.py b/api.py index 90dfad9..d893d85 100644 --- a/api.py +++ b/api.py @@ -31,7 +31,7 @@ def _filter_string(sessions, key, value, match=False): for session in sessions: if match: - if re.match(".*" + value + ".*", str(session[key]), re.IGNORECASE): + if re.match(".*" + re.escape(value) + ".*", str(session[key]), re.IGNORECASE): filtered_sessions.append(session) else: if session[key] == value: