From 317ad755a3dc9b00c12e4cdfbc8cdf1e1a737138 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 24 Mar 2020 09:29:48 -0600 Subject: [PATCH] Update functions.php --- resources/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index eeec6f636c..e1e9557c04 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -107,10 +107,10 @@ $database = new database; $uuid = $database->select($sql, null, 'column'); if (!is_uuid($uuid) && PHP_OS == 'FreeBSD') { - $uuid = shell_exec("uuidgen"); + $uuid = trim(shell_exec("uuidgen")); } if (!is_uuid($uuid) && PHP_OS == 'Linux') { - $uuid = file_get_contents('/proc/sys/kernel/random/uuid'); + $uuid = trim(file_get_contents('/proc/sys/kernel/random/uuid')); } return $uuid; }