Skip to content

Commit

Permalink
Configurator::detectDebugMode() workaround for PHP bug #77722
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 17, 2019
1 parent 6c73630 commit eeec348
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Bootstrap/Configurator.php
Expand Up @@ -315,6 +315,7 @@ public static function detectDebugMode($list = null): bool
if (!isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !isset($_SERVER['HTTP_FORWARDED'])) {
$list[] = '127.0.0.1';
$list[] = '::1';
$list[] = '[::1]'; // workaround for PHP < 7.3.4
}
return in_array($addr, $list, true) || in_array("$secret@$addr", $list, true);
}
Expand Down

0 comments on commit eeec348

Please sign in to comment.