From 89877f7ff2d65e78f2ade132003f6fe713aa0c6c Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sun, 27 Oct 2013 16:53:14 +0100 Subject: [PATCH] fix wrong error-message of non-existing ip/port combo when a ssl-ip/port exists but not checked when adding a domain 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 6ac99a16..5db20584 100644 --- a/admin_domains.php +++ b/admin_domains.php @@ -440,6 +440,9 @@ if($page == 'domains' // Verify SSL-Ports if (isset($_POST['ssl_ipandport']) && is_array($_POST['ssl_ipandport'])) { foreach ($_POST['ssl_ipandport'] as $ssl_ipandport) { + if (trim($ssl_ipandport) == "") continue; + // fix if no ssl-ip/port is checked + if (trim($ssl_ipandport) < 1) continue; $ssl_ipandport = intval($ssl_ipandport); $ssl_ipandport_check = $db->query_first("SELECT `id`, `ip`, `port` FROM `" . TABLE_PANEL_IPSANDPORTS . "` WHERE `id` = '" . $db->escape($ssl_ipandport) . "' " . $additional_ip_condition); if (!isset($ssl_ipandport_check['id'])