Update autoconfig.php

master
André Peters 2017-07-24 12:37:02 +02:00 committed by GitHub
parent 27c169dbe1
commit 1b719a8668
1 changed files with 17 additions and 16 deletions

View File

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