Change vars

master
Skylar Ittner 3 years ago
parent 143458ecdc
commit 9567aca82d

@ -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" => [

@ -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;

Loading…
Cancel
Save