mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Be more strict for RPC commands.
This commit is contained in:
@@ -2233,7 +2233,7 @@ Json::Value RPCHandler::doRpcCommand(const std::string& strMethod, Json::Value&
|
|||||||
{
|
{
|
||||||
// cLog(lsTRACE) << "doRpcCommand:" << strMethod << ":" << jvParams;
|
// cLog(lsTRACE) << "doRpcCommand:" << strMethod << ":" << jvParams;
|
||||||
|
|
||||||
if (!jvParams.isArray() || jvParams.size() < 1)
|
if (!jvParams.isArray() || jvParams.size() != 1)
|
||||||
return rpcError(rpcINVALID_PARAMS);
|
return rpcError(rpcINVALID_PARAMS);
|
||||||
|
|
||||||
Json::Value jvRequest = jvParams[0u];
|
Json::Value jvRequest = jvParams[0u];
|
||||||
|
|||||||
Reference in New Issue
Block a user