Account for numbers

This commit is contained in:
FusionPBX 2023-05-05 13:18:15 -06:00 committed by GitHub
parent 0f3b212586
commit b40005c11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1892,7 +1892,7 @@ function number_pad($number,$n) {
//escape user data //escape user data
function escape($string) { function escape($string) {
if (is_string($string)) { if (is_string($string) || is_numeric($string)) {
return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8'); return htmlentities($string, ENT_QUOTES | ENT_HTML5, 'UTF-8');
} }
else { else {