From be078f910f31a3a6a01bcc4b09b831efa1036383 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 5 Nov 2018 11:58:44 +0000 Subject: [PATCH] Add public_key variable where it was undefined Previously the public_key variable is being referenced but it is never set in this API call. This allows the correct functionality to occur when the public_key query parameter is set. --- api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api.php b/api.php index b6ecd5f..6d11b8d 100755 --- a/api.php +++ b/api.php @@ -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"); }