Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit a768d10

Browse files
committed
updated VENDORS for 2.1.10
1 parent 31cd247 commit a768d10

File tree

2 files changed

+61
-56
lines changed

2 files changed

+61
-56
lines changed

composer.lock

Lines changed: 57 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/config.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
exit('This script cannot be run from the CLI. Run it from a browser.');
55
}
66

7-
// This check prevents access to configuration check that are deployed by accident to production servers.
8-
// Feel free to remove this, extend it, or make something more sophisticated.
9-
if (isset($_SERVER['HTTP_CLIENT_IP'])
10-
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
11-
|| !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1'))
12-
) {
7+
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
8+
'127.0.0.1',
9+
'::1',
10+
))) {
1311
header('HTTP/1.0 403 Forbidden');
1412
exit('This script is only accessible from localhost.');
1513
}

0 commit comments

Comments
 (0)