APi
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.2.13
|
1.2.14
|
||||||
@@ -4870,9 +4870,8 @@ SQL;
|
|||||||
private function ensureDebugEnv(): void
|
private function ensureDebugEnv(): void
|
||||||
{
|
{
|
||||||
$env = strtolower((string)($this->conf['env'] ?? ''));
|
$env = strtolower((string)($this->conf['env'] ?? ''));
|
||||||
if ($env === 'staging') {
|
if ($env === 'staging') return;
|
||||||
return;
|
if (defined('APP_ENV') && strtolower((string)APP_ENV) === 'staging') return;
|
||||||
}
|
|
||||||
$host = '';
|
$host = '';
|
||||||
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
|
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
|
||||||
$host = strtolower(trim(explode(',', (string)$_SERVER['HTTP_X_FORWARDED_HOST'])[0]));
|
$host = strtolower(trim(explode(',', (string)$_SERVER['HTTP_X_FORWARDED_HOST'])[0]));
|
||||||
|
|||||||
Reference in New Issue
Block a user