rpc: also prevent dangerous methods in core btc class

This commit is contained in:
Tanguy Pruvot 2018-05-31 15:11:01 +02:00
parent 3343328da5
commit b0a0e53293

View file

@ -135,6 +135,11 @@ class Bitcoin {
// The ID should be unique for each call
$this->id++;
if (stripos($method, 'dump') !== false) {
$this->error = "$method method is not authorized!";
return FALSE;
}
// If no parameters are passed, this will be an empty array
if($method == 'getblocktemplate')
{