Update pdo.php

This commit is contained in:
FusionPBX
2018-08-19 14:12:56 -06:00
committed by GitHub
parent eb827ff7d6
commit a6c88fc609

View File

@@ -333,8 +333,8 @@ if ($db_type == "pgsql") {
$domain_uuid = uuid();
}
//check the domain cidr range
if (is_array($_SESSION['domain']["cidr"])) {
//check the domain cidr range
if (is_array($_SESSION['domain']["cidr"]) && !defined('STDIN')) {
$found = false;
foreach($_SESSION['domain']["cidr"] as $cidr) {
if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {