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 ef7a00c commit 1563b8fCopy full SHA for 1563b8f
.php_cs
@@ -13,6 +13,7 @@ $finder = Symfony\CS\Finder::create()
13
->exclude('web/css')
14
->exclude('web/fonts')
15
->exclude('web/js')
16
+ ->notPath('web/config.php')
17
->in(__DIR__)
18
;
19
web/config.php
@@ -14,10 +14,10 @@
exit('This script cannot be run from the CLI. Run it from a browser.');
}
-if (!in_array(@$_SERVER['REMOTE_ADDR'], [
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
20
-])) {
+))) {
21
header('HTTP/1.0 403 Forbidden');
22
exit('This script is only accessible from localhost.');
23
0 commit comments