aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--web/app_dev.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/app_dev.php b/web/app_dev.php
index d3e3b473..e0279c2a 100644
--- a/web/app_dev.php
+++ b/web/app_dev.php
@@ -9,13 +9,13 @@ use Symfony\Component\Debug\Debug;
9 9
10// This check prevents access to debug front controllers that are deployed by accident to production servers. 10// This check prevents access to debug front controllers that are deployed by accident to production servers.
11// Feel free to remove this, extend it, or make something more sophisticated. 11// Feel free to remove this, extend it, or make something more sophisticated.
12//if (isset($_SERVER['HTTP_CLIENT_IP']) 12if (isset($_SERVER['HTTP_CLIENT_IP'])
13// || isset($_SERVER['HTTP_X_FORWARDED_FOR']) 13 || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
14// || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server') 14 || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server')
15//) { 15) {
16// header('HTTP/1.0 403 Forbidden'); 16 header('HTTP/1.0 403 Forbidden');
17// exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); 17 exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
18//} 18}
19 19
20$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; 20$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
21Debug::enable(); 21Debug::enable();