Setup hardening.

This commit is contained in:
Denis Flaven
2018-12-13 17:31:21 +01:00
parent 8400eb910f
commit cb3440c85d

View File

@@ -121,6 +121,8 @@ 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');
switch($sOperation)
{
case 'async_action':