fix specialsettingsforsubdomains if security questions are being asked when editing a domain, fixes #1598
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -1245,6 +1245,7 @@ if ($page == 'domains'
|
|||||||
}
|
}
|
||||||
|
|
||||||
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
$specialsettings = validate(str_replace("\r\n", "\n", $_POST['specialsettings']), 'specialsettings', '/^[^\0]*$/');
|
||||||
|
$ssfs = (isset($_POST['specialsettingsforsubdomains']) && intval($_POST['specialsettingsforsubdomains']) == 1) ? 1 : 0;
|
||||||
$documentroot = validate($_POST['documentroot'], 'documentroot');
|
$documentroot = validate($_POST['documentroot'], 'documentroot');
|
||||||
|
|
||||||
if ($documentroot == '') {
|
if ($documentroot == '') {
|
||||||
@@ -1268,6 +1269,7 @@ if ($page == 'domains'
|
|||||||
$zonefile = $result['zonefile'];
|
$zonefile = $result['zonefile'];
|
||||||
$dkim = $result['dkim'];
|
$dkim = $result['dkim'];
|
||||||
$specialsettings = $result['specialsettings'];
|
$specialsettings = $result['specialsettings'];
|
||||||
|
$ssfs = (empty($specialsettings) ? 0 : 1);
|
||||||
$documentroot = $result['documentroot'];
|
$documentroot = $result['documentroot'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1522,6 +1524,7 @@ if ($page == 'domains'
|
|||||||
'mod_fcgid_starter' => $mod_fcgid_starter,
|
'mod_fcgid_starter' => $mod_fcgid_starter,
|
||||||
'mod_fcgid_maxrequests' => $mod_fcgid_maxrequests,
|
'mod_fcgid_maxrequests' => $mod_fcgid_maxrequests,
|
||||||
'specialsettings' => $specialsettings,
|
'specialsettings' => $specialsettings,
|
||||||
|
'specialsettingsforsubdomains' => $ssfs,
|
||||||
'registration_date' => $registration_date,
|
'registration_date' => $registration_date,
|
||||||
'termination_date' => $termination_date,
|
'termination_date' => $termination_date,
|
||||||
'issubof' => $issubof,
|
'issubof' => $issubof,
|
||||||
|
|||||||
Reference in New Issue
Block a user