瀏覽代碼

Update functions.php

FusionPBX 5 年之前
父節點
當前提交
e7e750625c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/functions.php

+ 2 - 2
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;
 		}