From 3b1f73f847c6871661f10c55d9e6d64d66f97fda Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 27 Aug 2024 11:09:37 -0600 Subject: [PATCH] Update event_guard.php --- app/event_guard/resources/service/event_guard.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/event_guard/resources/service/event_guard.php b/app/event_guard/resources/service/event_guard.php index 25cd190ade..45c269bdac 100644 --- a/app/event_guard/resources/service/event_guard.php +++ b/app/event_guard/resources/service/event_guard.php @@ -44,11 +44,11 @@ } //set the variables - if (isset($_GET['hostname'])) { + if (!empty($_GET['hostname'])) { $hostname = urldecode($_GET['hostname']); } $debug = false; - if (isset($_GET['debug'])) { + if (!empty($_GET['debug'])) { if (is_numeric($_GET['debug'])) { $debug_level = $_GET['debug']; } @@ -56,7 +56,7 @@ } //get the hostname - if (!isset($hostname)) { + if (empty($hostname)) { $hostname = gethostname(); } @@ -67,7 +67,7 @@ if ($php_os == 'freebsd') { $firewall_name = 'pf'; if (file_exists('/sbin/pfctl')) { - $firewall_path = '/sbin/pfctl'; + $firewall_path = '/sbin'; } } if ($php_os == 'linux') { @@ -716,4 +716,3 @@ } ?> -