From 2881d769ace0487933e86283d12f1233f73ccefb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 19 Aug 2018 14:12:56 -0600 Subject: [PATCH] Update pdo.php --- resources/pdo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/pdo.php b/resources/pdo.php index 693a57490a..563a57e67d 100644 --- a/resources/pdo.php +++ b/resources/pdo.php @@ -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'])) {