From b40005c11e41903a41b2b689783ae898cf3e7613 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 5 May 2023 13:18:15 -0600 Subject: [PATCH] Account for numbers --- resources/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 1c98ae176b..29ed34e9a4 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -1892,7 +1892,7 @@ function number_pad($number,$n) { //escape user data function escape($string) { - if (is_string($string)) { + if (is_string($string) || is_numeric($string)) { return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8'); } else {