Update pdo.php

This commit is contained in:
FusionPBX 2018-08-19 14:12:56 -06:00 committed by GitHub
parent 26874e4ac2
commit 2881d769ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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'])) {