Fix bug where status is truncated when a null byte is included. This is implemented by escaping unprintable characters.
This commit is contained in:
parent
53d4798c75
commit
6940d546f5
|
@ -1156,7 +1156,7 @@ Future<Version> ReadYourWritesTransaction::getReadVersion() {
|
||||||
|
|
||||||
Optional<Value> getValueFromJSON(StatusObject statusObj) {
|
Optional<Value> getValueFromJSON(StatusObject statusObj) {
|
||||||
try {
|
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;
|
return output;
|
||||||
}
|
}
|
||||||
catch (std::exception& e){
|
catch (std::exception& e){
|
||||||
|
|
Loading…
Reference in New Issue