1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-12 04:23:24 +02:00

[Web] Fix transport validation, thanks to Gideon!

This commit is contained in:
andryyy 2020-03-08 20:23:02 +01:00
parent c734c32a2c
commit 56538c4ef8
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -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]