new umask().

This commit is contained in:
Alexey Skobkin 2015-10-05 04:50:10 +03:00
parent 40559e3eab
commit bec53995a0
3 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -15,6 +15,8 @@ $loader->unregister();
$apcLoader->register(true);
*/
umask(0002);
require_once __DIR__.'/../app/AppKernel.php';
//require_once __DIR__.'/../app/AppCache.php';

View File

@ -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.