1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-03 20:19:15 +00:00

[Web] Fix transport validation for hostnames

This commit is contained in:
andryyy
2020-01-22 11:04:10 +01:00
parent 92407d9439
commit fc37442d21

View File

@@ -50,8 +50,8 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi
$port = null;
}
else {
echo "Invalid transport";
die();
$port = substr($hostname_w_port, strrpos($hostname_w_port, ':') + 1);
$hostname = rtrim($hostname_w_port, ':' . $port);
}
}
// Try to get MX if host is not [host]