From 56538c4ef827624b5005543b6e0ec4a947971503 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 8 Mar 2020 20:23:02 +0100 Subject: [PATCH] [Web] Fix transport validation, thanks to Gideon! --- data/web/inc/ajax/transport_check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/ajax/transport_check.php b/data/web/inc/ajax/transport_check.php index 5183f67a..3526e81b 100644 --- a/data/web/inc/ajax/transport_check.php +++ b/data/web/inc/ajax/transport_check.php @@ -50,8 +50,8 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi $port = null; } else { - $port = substr($hostname_w_port, strrpos($hostname_w_port, ':') + 1); $hostname = preg_replace('/'. preg_quote(':' . $port, '/') . '$/', '', $hostname_w_port); + $port = null; } } // Try to get MX if host is not [host]