diff options
author | Florian Dold <florian@dold.me> | 2022-01-27 15:29:55 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-01-27 15:29:55 +0100 |
commit | 32f1276b8c9cdc65f6873b8dc8d86240f25c8907 (patch) | |
tree | b46d620cb9b133595509bafdf73b4e11150d42b8 | |
parent | 8684a9bfea9223808e33edca9f91b8bd76379fd0 (diff) |
fix RFC 8785 JSON normalization
m--------- | contrib/gana | 0 | ||||
-rw-r--r-- | src/json/json.c | 10 |
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/gana b/contrib/gana -Subproject b0dd85e8187f33a1f92dd5eb31082050d333e16 +Subproject 9b8a787580307cea5a38359c485d521cd8ece82 diff --git a/src/json/json.c b/src/json/json.c index 705cfe92..bf3b2a0e 100644 --- a/src/json/json.c +++ b/src/json/json.c @@ -78,27 +78,27 @@ lowdump (struct GNUNET_Buffer *buf, { case 0x8: GNUNET_buffer_write (buf, - "\b", + "\\b", 2); break; case 0x9: GNUNET_buffer_write (buf, - "\t", + "\\t", 2); break; case 0xA: GNUNET_buffer_write (buf, - "\n", + "\\n", 2); break; case 0xC: GNUNET_buffer_write (buf, - "\f", + "\\f", 2); break; case 0xD: GNUNET_buffer_write (buf, - "\r", + "\\r", 2); break; default: |