fix: Fixed an issue with the default bootstrap.default.php

pull/1198/head
Iglocska 2016-06-02 14:19:26 +02:00
parent 77dcfecea8
commit b5e9d11d43
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ if (!$relativePaths) {
} else {
$protocol = 'http';
}
if (!isset($_SERVER['SERVER_PORT']) || !in_array($_SERVER['SERVER_PORT'], array('443', '80')) || !$appendPort) {
if (!isset($_SERVER['SERVER_PORT']) || in_array($_SERVER['SERVER_PORT'], array('443', '80')) || !$appendPort) {
Configure::write('MISP.baseurl', sprintf('https://%s', $serverName));
} else {
Configure::write('MISP.baseurl', sprintf('https://%s:%d', $serverName, $_SERVER['SERVER_PORT']));