Skip to content

Commit

Permalink
Update system/Boot.php
Browse files Browse the repository at this point in the history
Co-authored-by: Pooya Parsa <[email protected]>
  • Loading branch information
michalsn and datamweb authored Dec 12, 2024
1 parent 88a1512 commit 959b4e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system/Boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 959b4e4

Please sign in to comment.