From 39b20c37a211f0b94e693595d3312a1be65183a2 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 8 Apr 2025 16:47:53 -0600 Subject: [PATCH] config: handle suricata config with '=' in value For example, when an '=' appears in the --dump-config output when its used as part of a bpf-filter. Ticket: https://redmine.openinfosecfoundation.org/issues/7637 --- suricata/update/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suricata/update/engine.py b/suricata/update/engine.py index 2714a4d..fbd9bc6 100644 --- a/suricata/update/engine.py +++ b/suricata/update/engine.py @@ -109,7 +109,7 @@ class Configuration: conf = {} for line in configuration_dump.splitlines(): try: - key, val = line.decode().split(" = ") + key, val = line.decode().split(" = ", maxsplit=1) conf[key] = val except: logger.warning("Failed to parse: %s", line) -- 2.47.3