diff --git a/bin/console b/bin/console index 8fe9d49..de29045 100755 --- a/bin/console +++ b/bin/console @@ -36,6 +36,8 @@ if ($_SERVER['APP_DEBUG']) { if (class_exists(Debug::class)) { Debug::enable(); } +} else { + umask(0002); } $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); diff --git a/public/index.php b/public/index.php index 33ad283..61e13b0 100644 --- a/public/index.php +++ b/public/index.php @@ -13,6 +13,8 @@ umask(0000); Debug::enable(); +} else { + umask(0002); } if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {