From bec53995a09baaa87b5b9468ce9d1d6f70f88c29 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 5 Oct 2015 04:50:10 +0300 Subject: [PATCH] new umask(). --- app/console | 2 +- web/app.php | 2 ++ web/app_dev.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/console b/app/console index fa6a36e..d308f04 100644 --- a/app/console +++ b/app/console @@ -3,7 +3,7 @@ // if you don't want to setup permissions the proper way, just uncomment the following PHP line // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information -//umask(0000); +umask(0002); set_time_limit(0); diff --git a/web/app.php b/web/app.php index c5c2640..a163359 100644 --- a/web/app.php +++ b/web/app.php @@ -15,6 +15,8 @@ $loader->unregister(); $apcLoader->register(true); */ +umask(0002); + require_once __DIR__.'/../app/AppKernel.php'; //require_once __DIR__.'/../app/AppCache.php'; diff --git a/web/app_dev.php b/web/app_dev.php index 312dac3..04936b7 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -5,7 +5,7 @@ use Symfony\Component\Debug\Debug; // If you don't want to setup permissions the proper way, just uncomment the following PHP line // read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more information -//umask(0000); +umask(0002); // This check prevents access to debug front controllers that are deployed by accident to production servers. // Feel free to remove this, extend it, or make something more sophisticated.