mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Fix Setup hardening
This commit is contained in:
@@ -121,7 +121,10 @@ header("Expires: Fri, 17 Jul 1970 05:00:00 GMT"); // Date in the past
|
||||
$sOperation = Utils::ReadParam('operation', '');
|
||||
try
|
||||
{
|
||||
if (!is_writable(utils::GetConfigFilePath())) throw new Exception('Setup operations are not allowed outside of the setup');
|
||||
if (is_file(utils::GetConfigFilePath()) && !is_writable(utils::GetConfigFilePath()))
|
||||
{
|
||||
throw new Exception('Setup operations are not allowed outside of the setup');
|
||||
}
|
||||
|
||||
switch($sOperation)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user