From 62e98466fa17dcb75148fc61656c1cf12f40ab17 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Wed, 24 Jun 2026 10:52:49 -0400 Subject: [PATCH] conf: fix matching of property values with colons Use spa_json_begin_array() instead of the relaxed variant when parsing property values in pw_conf_find_match(). This prevents plain string values containing ':' (such as object.path) from being incorrectly tokenized while preserving support for actual JSON array properties. --- src/pipewire/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/conf.c b/src/pipewire/conf.c index cc0c65d61..e0fe202bb 100644 --- a/src/pipewire/conf.c +++ b/src/pipewire/conf.c @@ -712,7 +712,7 @@ bool pw_conf_find_match(struct spa_json *arr, const struct spa_dict *props, bool reg = false; } } - if (spa_json_begin_array_relax(&it[1], str, strlen(str)) > 0) { + if (spa_json_begin_array(&it[1], str, strlen(str)) > 0) { while (spa_json_get_string(&it[1], v, sizeof(v)) > 0) { if ((reg && regexec(&preg, v, 0, NULL, 0) == 0) || spa_streq(v, val)) {