Prevent control characters from being served in json string

This commit is contained in:
ExtReMLapin 2024-03-05 15:41:36 +01:00 committed by GitHub
parent 82cb31eb93
commit fb2f376103
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ array ::=
string ::=
"\"" (
[^"\\] |
[^"\\\x7F\x00-\x1F] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\"" ws