mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
rpc: prevent backupwallet method (#298)
This commit is contained in:
parent
1da40e518a
commit
f93b3df225
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue