From 9567aca82d7b1a21622f511a8ffc29ac6ff0ccad Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 25 Jul 2021 18:02:16 -0600 Subject: [PATCH] Change vars --- apiconfig.php | 2 +- endpoints/notary.publishkey.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;