mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
remove FRAMEWORK_PATH and namespace IPUtils
This commit is contained in:
parent
0d20ec1e10
commit
e0c94e0f72
@ -106,9 +106,9 @@ if(!defined('TRUSTED_PROXY')) {
|
||||
$trusted = true;
|
||||
} elseif(isset($_SERVER['REMOTE_ADDR'])) {
|
||||
if(!class_exists('SilverStripe\\Control\\Util\\IPUtils')) {
|
||||
require_once FRAMEWORK_PATH . '/control/IPUtils.php';
|
||||
require_once 'control/IPUtils.php';
|
||||
};
|
||||
$trusted = IPUtils::checkIP($_SERVER['REMOTE_ADDR'], explode(',', SS_TRUSTED_PROXY_IPS));
|
||||
$trusted = SilverStripe\Control\Util\IPUtils::checkIP($_SERVER['REMOTE_ADDR'], explode(',', SS_TRUSTED_PROXY_IPS));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user