Permalink
Browse files

updated VENDORS for 2.3.0-BETA2

  • Loading branch information...
fabpot committed May 10, 2013
1 parent 0d8dfdb commit 0bd13460dcab5dd4245bcdfe4a007b074788cccf
Showing with 4 additions and 6 deletions.
  1. +4 −6 web/config.php
@@ -4,12 +4,10 @@
exit('This script cannot be run from the CLI. Run it from a browser.');
}
// This check prevents access to configuration check that are deployed by accident to production servers.
// 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'))
) {
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('This script is only accessible from localhost.');
}

0 comments on commit 0bd1346

Please sign in to comment.