We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f9fc6 commit df6b8a0Copy full SHA for df6b8a0
symfony/framework-bundle/3.3/web/index.php
@@ -22,7 +22,7 @@
22
// Feel free to remove this, extend it, or make something more sophisticated.
23
if (isset($_SERVER['HTTP_CLIENT_IP'])
24
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
25
- || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server')
+ || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || PHP_SAPI === 'cli-server')
26
) {
27
header('HTTP/1.0 403 Forbidden');
28
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
0 commit comments