From dafee5ad7bf76feb8559c7a24d747ce04df09f81 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Thu, 5 Jan 2017 14:29:50 +0300 Subject: [PATCH] app_dev.php small change. --- web/app_dev.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app_dev.php b/web/app_dev.php index f8b866d..bde1e55 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -11,7 +11,10 @@ umask(0002); // 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'], array('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.');