Skip to content

Commit df6b8a0

Browse files
committed
replaced php_sapi_name() with PHP_SAPI
1 parent a9f9fc6 commit df6b8a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symfony/framework-bundle/3.3/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Feel free to remove this, extend it, or make something more sophisticated.
2323
if (isset($_SERVER['HTTP_CLIENT_IP'])
2424
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
25-
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server')
25+
|| !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || PHP_SAPI === 'cli-server')
2626
) {
2727
header('HTTP/1.0 403 Forbidden');
2828
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');

0 commit comments

Comments
 (0)