diff --git a/Core/Error/UnsafeFile.php b/Core/Error/UnsafeFile.php index d285efcabd..a6c5863c4f 100644 --- a/Core/Error/UnsafeFile.php +++ b/Core/Error/UnsafeFile.php @@ -28,7 +28,10 @@ public function run(): void { http_response_code(403); - echo '

' . Tools::lang()->trans('unsafe-file') . '

'; - echo '

' . $this->exception->getMessage() . '

'; + $title = Tools::lang()->trans('unsafe-file'); + $body = '

' . $title . '

' + . '

' . $this->exception->getMessage() . '

'; + + echo $this->htmlCard($title, $body, 'bg-danger'); } } \ No newline at end of file diff --git a/Core/Error/UnsafeFolder.php b/Core/Error/UnsafeFolder.php index 1b924d79dc..37113109a3 100644 --- a/Core/Error/UnsafeFolder.php +++ b/Core/Error/UnsafeFolder.php @@ -28,7 +28,10 @@ public function run(): void { http_response_code(403); - echo '

' . Tools::lang()->trans('unsafe-folder') . '

'; - echo '

' . $this->exception->getMessage() . '

'; + $title = Tools::lang()->trans('unsafe-folder'); + $html = '

' . $title . '

' + . '

' . $this->exception->getMessage() . '

'; + + echo $this->htmlCard($title, $html, 'bg-danger'); } } \ No newline at end of file