From a9ce2ae9078804c4c71aba41ec2a262ef21c3fd5 Mon Sep 17 00:00:00 2001 From: seven Date: Mon, 28 Sep 2020 03:08:09 +0100 Subject: [PATCH] Add check for missing certificate file --- gemini.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gemini.class.php b/gemini.class.php index 233a6c7..99e37d3 100644 --- a/gemini.class.php +++ b/gemini.class.php @@ -35,6 +35,8 @@ class Gemini { die("{$this->log_file} is not writable."); } } + if(!is_readable($this->certificate_file)) + die("Certificate file {$this->certificate_file} not readable."); } function parse_request($request) { -- 2.25.1