Merge pull request #36 from pxgamer/bugfix/public-key-transactions

Add public_key variable where it was undefined
This commit is contained in:
arionum
2018-11-05 14:40:22 +02:00
committed by GitHub

View File

@@ -203,6 +203,7 @@ if ($q == "getAddress") {
*/
$account = san($data['account']);
$public_key = san($data['public_key'] ?? '');
if (!empty($public_key) && strlen($public_key) < 32) {
api_err("Invalid public key");
}