Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/keys.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-10 08:46:25 +0200
committerErich Eckner <git@eckner.net>2019-09-10 08:46:25 +0200
commit1b9b6d2600afaeb5f3d4760908978772e2fb7bc4 (patch)
tree044a7d7a29a02e909e3e4bbdd1976fcbcb73b21b /keys.php
parent20e7385ff00d6d59f0635d1a9c6423603c15e36d (diff)
keys.php: allow for key uploadHEADmaster
Diffstat (limited to 'keys.php')
-rw-r--r--keys.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/keys.php b/keys.php
index 6bf77b4..b806ede 100644
--- a/keys.php
+++ b/keys.php
@@ -2,6 +2,20 @@
require_once "init.php";
+if ($_SERVER['REQUEST_METHOD'] == 'PUT') {
+
+ print shell_exec(
+ 'echo "' .
+ base64_encode(file_get_contents('php://input')) .
+ '"' .
+ ' | base64 -d' .
+ ' | gpg --import'
+ );
+
+ die();
+
+}
+
if (!array_key_exists('k', $_GET)) {
print
'There are ' .