From c857799a0fe46541af1ddd607533d7c16c5e990f Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Mon, 26 Oct 2020 08:28:41 +0800 Subject: [PATCH] Add umask --- bin/console | 2 ++ public/index.php | 2 ++ 2 files changed, 4 insertions(+) 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) {