From fa6597e1cb308d9b76bff6e208c25e92055e89b0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Sep 2018 15:41:14 +0200 Subject: httpdocs/index.php: check signatures if asked to --- httpdocs/index.php | 47 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 42 insertions(+), 5 deletions(-) (limited to 'httpdocs') diff --git a/httpdocs/index.php b/httpdocs/index.php index 3295c38..88b4b09 100644 --- a/httpdocs/index.php +++ b/httpdocs/index.php @@ -1,17 +1,19 @@ &1 | ' . + 'grep -c "\[GNUPG:\] VALIDSIG ' . $key_regex . ' "' + )) == '0') + die('Commit ' . $commit_identifier . ' is not signed by ' . $_GET['valid_keys']); + } $handle = popen( 'git -C "../work/repositories/' . $_GET['r'] . '" archive "' . $commit_identifier . '" | ' . 'gzip -nc', -- cgit v1.2.3