From 20e7385ff00d6d59f0635d1a9c6423603c15e36d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 15:52:22 +0200 Subject: keys.php: set correct mime type --- keys.php | 1 + 1 file changed, 1 insertion(+) (limited to 'keys.php') diff --git a/keys.php b/keys.php index baa12d8..6bf77b4 100644 --- a/keys.php +++ b/keys.php @@ -17,6 +17,7 @@ if (!array_key_exists('k', $_GET)) { if (preg_match('/^[0-9A-Fa-f]{16,40}$/', $_GET['k']) !== 1) die(); +header('Content-Type: text/plain'); $output = shell_exec('gpg -a --export ' . $_GET['k']); print $output; -- cgit v1.2.3-70-g09d2