JSON strings in some responses not being correctly escaped
Description
Need to ensure strings are correctly escaped when manually building JSON responses (we do this for some small efficiency reasons). We already do this in some places via ConvertToJSONString, need to make sure this is used comprehensively.
Same general issue as , but that fix was too narrow.
E.g:
from handler.writeRawJSON, handler.writeRawJSONStatus
Build sync_gateway-3.0.0-216 contains sync_gateway commit 51c3631 with commit message: - JSON strings in some responses not being correctly escaped (#5023)
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Need to ensure strings are correctly escaped when manually building JSON responses (we do this for some small efficiency reasons). We already do this in some places via ConvertToJSONString, need to make sure this is used comprehensively.
Same general issue as , but that fix was too narrow.
E.g:
from handler.writeRawJSON, handler.writeRawJSONStatus