Skip to content

Commit

Permalink
Add umask
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed Oct 26, 2020
1 parent 87c1db2 commit c857799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down
2 changes: 2 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
umask(0000);

Debug::enable();
} else {
umask(0002);
}

if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
Expand Down

0 comments on commit c857799

Please sign in to comment.