umask_fix.

This commit is contained in:
Alexey Skobkin 2015-05-28 20:42:43 +03:00
parent d13a9e3189
commit d199fa0074
3 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,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.