fix: Default bootstrap fixed for http

pull/1198/head
Iglocska 2016-06-02 14:24:06 +02:00
parent b5e9d11d43
commit 026c0a5d16
1 changed files with 2 additions and 2 deletions

View File

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