From 55d96f46f180e33d52b022ea22cac4c652e20484 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 20 Sep 2017 10:58:59 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/functions.php b/resources/functions.php index c2d3e68037..7629c20387 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -1894,6 +1894,7 @@ function number_pad($number,$n) { } } +//make directory with event socket function event_socket_mkdir($dir) { //connect to fs $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); @@ -1915,4 +1916,10 @@ function number_pad($number,$n) { return false; } +//escape user data + function escape($string) { + return htmlspecialchars($string, ENT_QUOTES, 'UTF-8'); + //return htmlentities($string, ENT_QUOTES, 'UTF-8'); + } + ?>