X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=web%2Fapp_dev.php;h=8456754d561d4178778d0998ad35a466f676ed1b;hb=4fd5f670fe555da54c7a488b2a038a6ee36ee935;hp=635bf7ac7be9773dc48c0b5a02b1c586fc2c35a6;hpb=5c895a7fd15822856fb407910264c5d95e1e223c;p=github%2Fwallabag%2Fwallabag.git diff --git a/web/app_dev.php b/web/app_dev.php index 635bf7ac..8456754d 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -12,7 +12,7 @@ use Symfony\Component\Debug\Debug; // Feel free to remove this, extend it, or make something more sophisticated. if (isset($_SERVER['HTTP_CLIENT_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR']) - || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server') + || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1']) || php_sapi_name() === 'cli-server') ) { header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');