mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: escape module values
We need to unescape the module argument values, just like pulseaudio does. We might end up with invalid escape sequences for the JSON parser. Fixes #3071
This commit is contained in:
parent
44f4845df3
commit
dd80b76cb0
1 changed files with 6 additions and 6 deletions
|
|
@ -141,14 +141,14 @@ void module_args_add_props(struct pw_properties *props, const char *str)
|
||||||
f = ' ';
|
f = ' ';
|
||||||
}
|
}
|
||||||
v = p;
|
v = p;
|
||||||
for (e = p; *e ; e++) {
|
for (e = p; *p ;) {
|
||||||
if (*e == f)
|
if (*p == f)
|
||||||
break;
|
break;
|
||||||
if (*e == '\\')
|
if (*p == '\\')
|
||||||
e++;
|
p++;
|
||||||
|
*e++ = *p++;
|
||||||
}
|
}
|
||||||
p = e;
|
if (*p != '\0')
|
||||||
if (*e != '\0')
|
|
||||||
p++;
|
p++;
|
||||||
*e = '\0';
|
*e = '\0';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue