Skip to content

Commit

Permalink
Apply code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed May 28, 2024
1 parent 45f30ec commit 8afcf48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@
$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) {
foreach ($messages as $message) {
$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.');
}
}
];

0 comments on commit 8afcf48

Please sign in to comment.