mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #6401 from andrewandante/HOTFIX/namespace-IPUtils-correctly-3.5
remove FRAMEWORK_PATH and namespace IPUtils
This commit is contained in:
commit
68ce7b538b
@ -106,9 +106,9 @@ if(!defined('TRUSTED_PROXY')) {
|
|||||||
$trusted = true;
|
$trusted = true;
|
||||||
} elseif(isset($_SERVER['REMOTE_ADDR'])) {
|
} elseif(isset($_SERVER['REMOTE_ADDR'])) {
|
||||||
if(!class_exists('SilverStripe\\Control\\Util\\IPUtils')) {
|
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…
x
Reference in New Issue
Block a user