From b4de9f0f573e3ae3bf820ff8634a7ab8ddaa440d Mon Sep 17 00:00:00 2001 From: Ahmet Bora Date: Tue, 28 May 2024 14:58:16 +0300 Subject: [PATCH] Apply code reviews --- commands/security.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/security.php b/commands/security.php index 59a4e76..5155e52 100644 --- a/commands/security.php +++ b/commands/security.php @@ -42,6 +42,8 @@ $messages[] = I18n::translate('system.issues.' . $key); } } + } else { + $messages[] = 'Could not check for exposed folders as the site URL is not absolute'; } if (empty($messages) === false) { @@ -49,7 +51,7 @@ $cli->error('> ' . $message); } } else { - $cli->success('No security warnings were detected'); + $cli->success('Basic security checks were successful, please review https://getkirby.com/docs/guide/security for additional best practices.'); } } ];