mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
json: also escape '/' as required by JSON
This commit is contained in:
parent
262e609b73
commit
eb8546a682
1 changed files with 1 additions and 0 deletions
|
|
@ -389,6 +389,7 @@ static inline int spa_json_encode_string(char *str, int size, const char *val)
|
|||
break;
|
||||
case '\\':
|
||||
case '"':
|
||||
case '/':
|
||||
__PUT('\\'); __PUT(*val);
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue