1
0
Fork 0

Protect composer home against web access

pull/617/head
Jerome Tamarelle 2012-04-25 16:36:18 +02:00
parent f0ea097134
commit 1139b5c306
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ class Factory
}
}
// Protect directory against web access
if (!file_exists($home . '/.htaccess')) {
@mkdir($home, 0777, true) && @file_put_contents($home . '/.htaccess', 'deny from all');
}
$config = new Config();
$file = new JsonFile($home.'/config.json');