From 57497bd03f22825e3e82326f18f641b0d636301f Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 15 Nov 2019 16:36:14 +0100 Subject: [PATCH] if no ssl IP/port is selected when editing a domain within the webinterface, set the remove_ssl_ipandport parameter to true to not fallback to defaults Signed-off-by: Michael Kaufmann --- admin_domains.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin_domains.php b/admin_domains.php index 61196573..0579c9fd 100644 --- a/admin_domains.php +++ b/admin_domains.php @@ -408,6 +408,10 @@ if ($page == 'domains' || $page == 'overview') { if (isset($_POST['send']) && $_POST['send'] == 'send') { try { + // remove ssl ip/ports if set is empty + if (isset($_POST['ssl_ipandport']) && empty($_POST['ssl_ipandport'])) { + $_POST['remove_ssl_ipandport'] = true; + } Domains::getLocal($userinfo, $_POST)->update(); } catch (Exception $e) { \Froxlor\UI\Response::dynamic_error($e->getMessage());