We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a1512 commit 959b4e4Copy full SHA for 959b4e4
system/Boot.php
@@ -196,10 +196,12 @@ protected static function definePathConstants(Paths $paths): void
196
197
// The path to the writable directory.
198
if (! defined('WRITEPATH')) {
199
- if (($writePath = realpath(rtrim($paths->writableDirectory, '\\/ '))) === false) {
+
200
+ $writePath = realpath(rtrim($paths->writableDirectory, '\\/ '));
201
202
+ if ($writePath === false) {
203
header('HTTP/1.1 503 Service Unavailable.', true, 503);
204
echo 'The WRITEPATH is not set correctly.';
-
205
// EXIT_ERROR is not yet defined
206
exit(1);
207
}
0 commit comments