mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +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;
|
||||
|
||||
if (!jvParams.isArray() || jvParams.size() < 1)
|
||||
if (!jvParams.isArray() || jvParams.size() != 1)
|
||||
return rpcError(rpcINVALID_PARAMS);
|
||||
|
||||
Json::Value jvRequest = jvParams[0u];
|
||||
|
||||
Reference in New Issue
Block a user