Fix use $_SERVER[ 'HTTPS']
https://www.php.net/manual/reserved.variables.server.php
This commit is contained in:
parent
c196267568
commit
308704023b
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ require __DIR__ . '/functions.php';
|
|||
\ForkBB\_init($c);
|
||||
|
||||
// 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);
|
||||
} else {
|
||||
$c->BASE_URL = \str_replace('https://', 'http://', $c->BASE_URL);
|
||||
|
|
Loading…
Add table
Reference in a new issue