Browse Source

json: don't escape /

lines
Wim Taymans 1 year ago
parent
commit
016f02616b
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      spa/tools/spa-json-dump.c
  2. +0
    -1
      src/pipewire/properties.c

+ 1
- 1
spa/tools/spa-json-dump.c View File

@ -57,7 +57,7 @@ static void encode_string(FILE *f, const char *val, int len)
case '\f':
fprintf(f, "\\f");
break;
case '\\': case '"': case '/':
case '\\': case '"':
fprintf(f, "\\%c", v);
break;
default:


+ 0
- 1
src/pipewire/properties.c View File

@ -548,7 +548,6 @@ static int encode_string(FILE *f, const char *val)
break;
case '\\':
case '"':
case '/':
len += fprintf(f, "\\%c", *val);
break;
default:


Loading…
Cancel
Save