1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-01-22 05:09:24 +02:00

Update autoconfig.php

This commit is contained in:
André Peters 2017-07-24 12:37:02 +02:00 committed by GitHub
parent 27c169dbe1
commit 1b719a8668

View File

@ -17,7 +17,8 @@ $domain_port = strpos($_SERVER['HTTP_HOST'], ':');
if ($domain_port === FALSE) { if ($domain_port === FALSE) {
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1); $domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1);
$port = 443; $port = 443;
} else { }
else {
$domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1, $domain_port-$domain_dot-1); $domain = substr($_SERVER['HTTP_HOST'], $domain_dot+1, $domain_port-$domain_dot-1);
$port = substr($_SERVER['HTTP_HOST'], $domain_port+1); $port = substr($_SERVER['HTTP_HOST'], $domain_port+1);
} }