From 05a141bf78241f9f47c82a3e599edd751d6385ee Mon Sep 17 00:00:00 2001 From: Joshua Ruehlig Date: Mon, 24 Apr 2017 23:40:52 -0700 Subject: [PATCH] Update database.php --- web/includes/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/database.php b/web/includes/database.php index 9935e3ba6..bfd17b70e 100644 --- a/web/includes/database.php +++ b/web/includes/database.php @@ -33,7 +33,7 @@ function dbConnect() if (strpos(ZM_DB_HOST, ':')) { // Host variable may carry a port or socket. list($host, $portOrSocket) = explode(':', ZM_DB_HOST, 2); - if (is_numeric($portOrSocket)) { + if (ctype_digit($portOrSocket)) { $socket = ':host='.$host . ';port='.$portOrSocket; } else { $socket = ':unix_socket='.$portOrSocket;