Change vars
This commit is contained in:
parent
143458ecdc
commit
9567aca82d
@ -88,7 +88,7 @@ $APIS = [
|
|||||||
"notary/publishkey" => [
|
"notary/publishkey" => [
|
||||||
"load" => "notary.publishkey.php",
|
"load" => "notary.publishkey.php",
|
||||||
"vars" => [
|
"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" => [
|
"notary/fetchkey" => [
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$pubkey = $VARS["key"];
|
$pubkey = $VARS["publickey"];
|
||||||
$name = $VARS["name"] ?? null;
|
$name = $VARS["name"] ?? null;
|
||||||
$email = filter_var($VARS["email"] ?? "", FILTER_VALIDATE_EMAIL) ? $VARS["email"] : null;
|
$email = filter_var($VARS["email"] ?? "", FILTER_VALIDATE_EMAIL) ? $VARS["email"] : null;
|
||||||
$location = $VARS["location"] ?? null;
|
$location = $VARS["location"] ?? null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user