Parcourir la source

Account for numbers

FusionPBX il y a 2 ans
Parent
commit
ec3291326f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      resources/functions.php

+ 1 - 1
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 {