From 5c39dfdbcb51805b8a261b2b78786fad3295cfd0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 10 Sep 2019 08:50:11 +0200 Subject: keys.php: print "done" when done importing --- keys.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'keys.php') diff --git a/keys.php b/keys.php index b806ede..60a7f53 100644 --- a/keys.php +++ b/keys.php @@ -4,7 +4,7 @@ require_once "init.php"; if ($_SERVER['REQUEST_METHOD'] == 'PUT') { - print shell_exec( + shell_exec( 'echo "' . base64_encode(file_get_contents('php://input')) . '"' . @@ -12,6 +12,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'PUT') { ' | gpg --import' ); + print 'done' . "\n"; + die(); } -- cgit v1.2.3-70-g09d2