diff --git a/apiconfig.php b/apiconfig.php index 31061ed..0a23d19 100644 --- a/apiconfig.php +++ b/apiconfig.php @@ -88,7 +88,7 @@ $APIS = [ "notary/publishkey" => [ "load" => "notary.publishkey.php", "vars" => [ - "key" => "/-----BEGIN PGP PUBLIC KEY BLOCK-----(\n.*)+-----END PGP PUBLIC KEY BLOCK-----/" + "publickey" => "/-----BEGIN PGP PUBLIC KEY BLOCK-----(\n.*)+-----END PGP PUBLIC KEY BLOCK-----/" ] ], "notary/fetchkey" => [ diff --git a/endpoints/notary.publishkey.php b/endpoints/notary.publishkey.php index 95b104f..b10aad7 100644 --- a/endpoints/notary.publishkey.php +++ b/endpoints/notary.publishkey.php @@ -7,7 +7,7 @@ */ -$pubkey = $VARS["key"]; +$pubkey = $VARS["publickey"]; $name = $VARS["name"] ?? null; $email = filter_var($VARS["email"] ?? "", FILTER_VALIDATE_EMAIL) ? $VARS["email"] : null; $location = $VARS["location"] ?? null;