Skip to content

Commit 19c739f

Browse files
author
James McLaughlin
committed
Don't escape forward slashes
1 parent 662588b commit 19c739f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

json-builder.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ static size_t measure_string (unsigned int length,
469469
{
470470
case '"':
471471
case '\\':
472-
case '/':
473472
case '\b':
474473
case '\f':
475474
case '\n':
@@ -509,7 +508,6 @@ static size_t serialize_string (json_char * buf,
509508
{
510509
case '"': PRINT_ESCAPED ('\"'); continue;
511510
case '\\': PRINT_ESCAPED ('\\'); continue;
512-
case '/': PRINT_ESCAPED ('/'); continue;
513511
case '\b': PRINT_ESCAPED ('b'); continue;
514512
case '\f': PRINT_ESCAPED ('f'); continue;
515513
case '\n': PRINT_ESCAPED ('n'); continue;

0 commit comments

Comments
 (0)