diff --git a/web/yaamp/core/rpc/easybitcoin.php b/web/yaamp/core/rpc/easybitcoin.php index 5021887..ad3401a 100644 --- a/web/yaamp/core/rpc/easybitcoin.php +++ b/web/yaamp/core/rpc/easybitcoin.php @@ -135,7 +135,7 @@ class Bitcoin { // The ID should be unique for each call $this->id++; - if (stripos($method, 'dump') !== false) { + if (stripos($method, 'dump') !== false || stripos($method, 'backupwallet') !== false) { $this->error = "$method method is not authorized!"; return FALSE; } diff --git a/web/yaamp/core/rpc/wallet-rpc.php b/web/yaamp/core/rpc/wallet-rpc.php index 533bb13..78750db 100644 --- a/web/yaamp/core/rpc/wallet-rpc.php +++ b/web/yaamp/core/rpc/wallet-rpc.php @@ -55,7 +55,7 @@ class WalletRPC { function __call($method, $params) { - if (stripos($method, "dump") !== false) { + if (stripos($method, "dump") !== false || stripos($method, "backupwallet") !== false) { $this->error = "$method not authorized!"; debuglog("$method rpc method is not authorized!"); return false;