2
api.php
2
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");
|
||||
}
|
||||
@@ -203,6 +204,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");
|
||||
}
|
||||
|
||||
3
tmp/.gitignore
vendored
Normal file
3
tmp/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*
|
||||
!.gitignore
|
||||
!db-update
|
||||
Reference in New Issue
Block a user