From 959b4e472ea5ef8533dd3a448643aa4444b791eb Mon Sep 17 00:00:00 2001 From: Michal Sniatala Date: Thu, 12 Dec 2024 08:03:47 +0100 Subject: [PATCH] Update system/Boot.php Co-authored-by: Pooya Parsa --- system/Boot.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/Boot.php b/system/Boot.php index fc1d7c74a462..da4ea864e105 100644 --- a/system/Boot.php +++ b/system/Boot.php @@ -196,10 +196,12 @@ protected static function definePathConstants(Paths $paths): void // The path to the writable directory. if (! defined('WRITEPATH')) { - if (($writePath = realpath(rtrim($paths->writableDirectory, '\\/ '))) === false) { + + $writePath = realpath(rtrim($paths->writableDirectory, '\\/ ')); + + if ($writePath === false) { header('HTTP/1.1 503 Service Unavailable.', true, 503); echo 'The WRITEPATH is not set correctly.'; - // EXIT_ERROR is not yet defined exit(1); }