mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-20 13:21:30 +00:00
[Web] Remove Port from HTTP_HOST
This commit is contained in:
@@ -6,7 +6,8 @@ if (!isset($_SERVER['HTTP_HOST']) || strpos($_SERVER['HTTP_HOST'], 'mta-sts.') !
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$domain = str_replace('mta-sts.', '', $_SERVER['HTTP_HOST']);
|
$host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']);
|
||||||
|
$domain = str_replace('mta-sts.', '', $host);
|
||||||
$mta_sts = mailbox('get', 'mta_sts', $domain);
|
$mta_sts = mailbox('get', 'mta_sts', $domain);
|
||||||
|
|
||||||
if (count($mta_sts) == 0 ||
|
if (count($mta_sts) == 0 ||
|
||||||
|
|||||||
Reference in New Issue
Block a user