prevent people from triggering the setup manually

This commit is contained in:
Robin Appelman 2011-09-24 19:06:08 +02:00
parent 793e29e124
commit 3bccebacbc
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ require_once('lib/base.php');
// Setup required :
$not_installed = !OC_Config::getValue('installed', false);
$install_called = (isset($_POST['install']) AND $_POST['install']=='true');
if($not_installed OR $install_called) {
if($not_installed) {
OC_Util::addScript('setup');
require_once('setup.php');
exit();