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:
parent
7e68a68732
commit
4527b63c7b
2 changed files with 10 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue