Skip to content

Commit

Permalink
updated VENDORS for 2.3.0-BETA2
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 10, 2013
1 parent 0d8dfdb commit 0bd1346
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web/config.php
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 0bd1346

Please sign in to comment.