Fix bug where status is truncated when a null byte is included. This is implemented by escaping unprintable characters.

This commit is contained in:
A.J. Beamon 2020-03-12 12:27:53 -07:00
parent 53d4798c75
commit 6940d546f5
1 changed files with 1 additions and 1 deletions

View File

@ -1156,7 +1156,7 @@ Future<Version> ReadYourWritesTransaction::getReadVersion() {
Optional<Value> getValueFromJSON(StatusObject statusObj) {
try {
Value output = StringRef(json_spirit::write_string(json_spirit::mValue(statusObj), json_spirit::Output_options::raw_utf8).c_str());
Value output = StringRef(json_spirit::write_string(json_spirit::mValue(statusObj), json_spirit::Output_options::none).c_str());
return output;
}
catch (std::exception& e){