|
@@ -31,7 +31,7 @@ require __DIR__ . '/functions.php';
|
|
\ForkBB\_init($c);
|
|
\ForkBB\_init($c);
|
|
|
|
|
|
// https or http?
|
|
// https or http?
|
|
-if (isset($_SERVER['HTTPS']) && \strtolower($_SERVER['HTTPS']) !== 'off') {
|
|
|
|
|
|
+if (!empty($_SERVER['HTTPS']) && \strtolower($_SERVER['HTTPS']) !== 'off') {
|
|
$c->BASE_URL = \str_replace('http://', 'https://', $c->BASE_URL);
|
|
$c->BASE_URL = \str_replace('http://', 'https://', $c->BASE_URL);
|
|
} else {
|
|
} else {
|
|
$c->BASE_URL = \str_replace('https://', 'http://', $c->BASE_URL);
|
|
$c->BASE_URL = \str_replace('https://', 'http://', $c->BASE_URL);
|