General fixes for TLS

This was tested in airtime web and with integration of media-monitor and silan up and running. It might work for pypo but that needs testing.
This commit is contained in:
Lucas Bickel 2017-02-11 13:52:15 +01:00
parent 7e68a68732
commit 4527b63c7b
2 changed files with 10 additions and 4 deletions

View file

@ -510,6 +510,10 @@ SQL;
$serverPort = $_SERVER['SERVER_PORT'];
$subDir = $CC_CONFIG['baseDir'];
if ($protocol === 'https' && $serverPort == 80) {
$serverPort = 443;
}
if ($subDir[0] === "/") {
$subDir = substr($subDir, 1, strlen($subDir) - 1);
}