[FIX] Validate cold wallet address
This commit is contained in:
parent
c0618dd598
commit
06eee145bf
@ -71,10 +71,8 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
|
|||||||
if (!empty($config['coldwallet']['address'])) {
|
if (!empty($config['coldwallet']['address'])) {
|
||||||
try {
|
try {
|
||||||
if ($bitcoin->can_connect() == true) {
|
if ($bitcoin->can_connect() == true) {
|
||||||
$validate_cold_address = $bitcoin->validateaddress($config['coldwallet']['address']);
|
if (!$bitcoin->validateaddress($config['coldwallet']['address']))
|
||||||
if (!$validate_cold_address['isvalid']) {
|
|
||||||
$error[] = "Your cold wallet address is <u>SET and INVALID</u>";
|
$error[] = "Your cold wallet address is <u>SET and INVALID</u>";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
}
|
}
|
||||||
@ -133,4 +131,4 @@ if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA'][
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user