From b05105bfdf69062dab80aa6e8a4824b80020c4f2 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 27 Feb 2016 19:57:29 +0100 Subject: [PATCH] fix specialsettingsforsubdomains if security questions are being asked when editing a domain, fixes #1598 Signed-off-by: Michael Kaufmann (d00p) --- admin_domains.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin_domains.php b/admin_domains.php index 43ba8661..a977db5a 100644 --- a/admin_domains.php +++ b/admin_domains.php @@ -1245,6 +1245,7 @@ if ($page == 'domains' } $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'); if ($documentroot == '') { @@ -1268,6 +1269,7 @@ if ($page == 'domains' $zonefile = $result['zonefile']; $dkim = $result['dkim']; $specialsettings = $result['specialsettings']; + $ssfs = (empty($specialsettings) ? 0 : 1); $documentroot = $result['documentroot']; } @@ -1522,6 +1524,7 @@ if ($page == 'domains' 'mod_fcgid_starter' => $mod_fcgid_starter, 'mod_fcgid_maxrequests' => $mod_fcgid_maxrequests, 'specialsettings' => $specialsettings, + 'specialsettingsforsubdomains' => $ssfs, 'registration_date' => $registration_date, 'termination_date' => $termination_date, 'issubof' => $issubof,