mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-17 20:03:03 +02:00
Stage 7 has been completed
This commit is contained in:
+4
-2
@@ -331,9 +331,11 @@ class XC_Bootstrap {
|
||||
if (is_array($rSettings) && !empty($rSettings['verify_host'])) {
|
||||
if (file_exists(CACHE_TMP_PATH . 'allowed_domains')) {
|
||||
$rDomains = @igbinary_unserialize(@file_get_contents(CACHE_TMP_PATH . 'allowed_domains'));
|
||||
if (is_array($rDomains) && count($rDomains) > 0
|
||||
if (
|
||||
is_array($rDomains) && count($rDomains) > 0
|
||||
&& !in_array(HOST, $rDomains) && HOST !== 'xc_vm'
|
||||
&& !filter_var(HOST, FILTER_VALIDATE_IP)) {
|
||||
&& !filter_var(HOST, FILTER_VALIDATE_IP)
|
||||
) {
|
||||
generateError('INVALID_HOST');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user