Browse Source

json: also escape '/' as required by JSON

lines
Wim Taymans 2 years ago
parent
commit
eb8546a682
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      spa/include/spa/utils/json.h

+ 1
- 0
spa/include/spa/utils/json.h View File

@ -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…
Cancel
Save