Merge pull request #36 from pxgamer/bugfix/public-key-transactions
Add public_key variable where it was undefined
This commit is contained in:
1
api.php
1
api.php
@@ -203,6 +203,7 @@ if ($q == "getAddress") {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$account = san($data['account']);
|
$account = san($data['account']);
|
||||||
|
$public_key = san($data['public_key'] ?? '');
|
||||||
if (!empty($public_key) && strlen($public_key) < 32) {
|
if (!empty($public_key) && strlen($public_key) < 32) {
|
||||||
api_err("Invalid public key");
|
api_err("Invalid public key");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user