[Web] Fix transport validation, thanks to Gideon!
parent
c734c32a2c
commit
56538c4ef8
|
@ -50,8 +50,8 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi
|
||||||
$port = null;
|
$port = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$port = substr($hostname_w_port, strrpos($hostname_w_port, ':') + 1);
|
|
||||||
$hostname = preg_replace('/'. preg_quote(':' . $port, '/') . '$/', '', $hostname_w_port);
|
$hostname = preg_replace('/'. preg_quote(':' . $port, '/') . '$/', '', $hostname_w_port);
|
||||||
|
$port = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Try to get MX if host is not [host]
|
// Try to get MX if host is not [host]
|
||||||
|
|
Loading…
Reference in New Issue