From 369026c9ebfafb1357f941c49b35df4361f1bbee Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 15:49:38 +0200 Subject: keys.php: print example --- keys.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'keys.php') diff --git a/keys.php b/keys.php index 42d9c01..baa12d8 100644 --- a/keys.php +++ b/keys.php @@ -3,7 +3,15 @@ require_once "init.php"; if (!array_key_exists('k', $_GET)) { - print 'There are ' . shell_exec('gpg --list-keys --with-colons | grep "^fpr:" | cut -d: -f10 | wc -l') . ' keys on this server.'; + print + 'There are ' . + trim(shell_exec('gpg --list-keys --with-colons | grep "^fpr:" | cut -d: -f10 | wc -l')) . + ' keys on this server.
' . + "\n"; + print + 'You can download them.' . "\n"; die(); } if (preg_match('/^[0-9A-Fa-f]{16,40}$/', $_GET['k']) !== 1) -- cgit v1.2.3