diff --git a/app/fifo_list/fifo_interactive_inc.php b/app/fifo_list/fifo_interactive_inc.php index 200ba607bd..3ba68c182b 100644 --- a/app/fifo_list/fifo_interactive_inc.php +++ b/app/fifo_list/fifo_interactive_inc.php @@ -44,6 +44,7 @@ //set variables $fifo_name = trim($_REQUEST["c"]); + $fifo_name = preg_replace('#[^a-zA-Z0-9\-./]#', '', $fifo_name); //if not the user is not a member of the superadmin then restrict to viewing their own domain if (!if_group("superadmin")) { @@ -54,7 +55,9 @@ } //prepare and send the api command over event socket + $switch_cmd = 'fifo list_verbose '.$fifo_name.''; + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if (!$fp) { $msg = "
| ".$text['label-username']." | \n"; echo "Total inbound calls | \n"; echo "Logged on since | \n"; echo "
|---|