mirror of https://github.com/MISP/MISP
fix: Fixed an issue with the default bootstrap.default.php
parent
77dcfecea8
commit
b5e9d11d43
|
@ -99,7 +99,7 @@ if (!$relativePaths) {
|
||||||
} else {
|
} else {
|
||||||
$protocol = 'http';
|
$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));
|
Configure::write('MISP.baseurl', sprintf('https://%s', $serverName));
|
||||||
} else {
|
} else {
|
||||||
Configure::write('MISP.baseurl', sprintf('https://%s:%d', $serverName, $_SERVER['SERVER_PORT']));
|
Configure::write('MISP.baseurl', sprintf('https://%s:%d', $serverName, $_SERVER['SERVER_PORT']));
|
||||||
|
|
Loading…
Reference in New Issue