returned isprint check
This commit is contained in:
@@ -1464,9 +1464,7 @@ UniValue getwalletburntransactions(const UniValue& params, bool fHelp)
|
|||||||
|
|
||||||
// check for corrupted strings (look for non-printable chars) from some older versions
|
// check for corrupted strings (look for non-printable chars) from some older versions
|
||||||
// which caused "couldn't parse reply from server" error on client:
|
// which caused "couldn't parse reply from server" error on client:
|
||||||
// if (std::find_if(targetSymbol.begin(), targetSymbol.end(), [](int c) {return !std::isprint(c);}) != targetSymbol.end())
|
if (std::find_if(targetSymbol.begin(), targetSymbol.end(), [](int c) {return !std::isprint(c);}) != targetSymbol.end())
|
||||||
UniValue testval(UniValue::VSTR);
|
|
||||||
if( !testval.read(targetSymbol) )
|
|
||||||
targetSymbol = "<value corrupted>";
|
targetSymbol = "<value corrupted>";
|
||||||
|
|
||||||
entry.push_back(Pair("targetSymbol", targetSymbol));
|
entry.push_back(Pair("targetSymbol", targetSymbol));
|
||||||
|
|||||||
Reference in New Issue
Block a user