mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Bug fixed unset the cidr variable
This commit is contained in:
@@ -27,11 +27,14 @@
|
||||
//check the domain cidr range
|
||||
if (isset($_SESSION['domain']["cidr"]) && !defined('STDIN')) {
|
||||
$found = false;
|
||||
foreach($_SESSION['domain']["cidr"] as $cidr) {
|
||||
if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {
|
||||
$found = true;
|
||||
break;
|
||||
if (!empty($_SESSION['domain']["cidr"])) {
|
||||
foreach($_SESSION['domain']["cidr"] as $cidr) {
|
||||
if (check_cidr($cidr, $_SERVER['REMOTE_ADDR'])) {
|
||||
$found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
unset($cidr);
|
||||
}
|
||||
if (!$found) {
|
||||
echo "access denied";
|
||||
|
||||
Reference in New Issue
Block a user