From be078f910f31a3a6a01bcc4b09b831efa1036383 Mon Sep 17 00:00:00 2001 From: pxgamer Date: Mon, 5 Nov 2018 11:58:44 +0000 Subject: [PATCH 1/3] 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"); } From d3d20f596b09a7dd579dc1d42e8de24fe4451cbe Mon Sep 17 00:00:00 2001 From: pxgamer Date: Wed, 7 Nov 2018 11:58:07 +0000 Subject: [PATCH 2/3] Add missing public_key to getPendingBalance --- api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api.php b/api.php index 6d11b8d..8fafd7e 100755 --- a/api.php +++ b/api.php @@ -164,6 +164,7 @@ if ($q == "getAddress") { */ $account = $data['account']; + $public_key = san($data['public_key'] ?? ''); if (!empty($public_key) && strlen($public_key) < 32) { api_err("Invalid public key"); } From 0d181f55125c945817fcf39b7fcf3e14af44221d Mon Sep 17 00:00:00 2001 From: pxgamer Date: Fri, 7 Dec 2018 11:31:52 +0000 Subject: [PATCH 3/3] Add Git ignore file to the tmp directory The sanity process generates a lot of temporary files in the tmp directory. These display as untracked changes in Git and make it a lot harder to view only actual changes to the repository. --- tmp/.gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tmp/.gitignore diff --git a/tmp/.gitignore b/tmp/.gitignore new file mode 100644 index 0000000..f3bd116 --- /dev/null +++ b/tmp/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!db-update