From 13fc0df92cf3326d69667f3c978cdb61beaafaae Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 1 Nov 2014 12:40:45 +0100 Subject: [PATCH] Fixed #2251 --- src/pocketmine/utils/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/utils/Utils.php b/src/pocketmine/utils/Utils.php index c357da95d..64602c14f 100644 --- a/src/pocketmine/utils/Utils.php +++ b/src/pocketmine/utils/Utils.php @@ -59,7 +59,7 @@ class Utils{ */ public static function getUniqueID($raw = false, $extra = ""){ $machine = php_uname("a"); - $machine .= file_exists("/proc/cpuinfo") ? `cat /proc/cpuinfo | grep "model name"`: ""; + $machine .= file_exists("/proc/cpuinfo") ? implode(preg_grep("/model name/", file("/proc/cpuinfo"))): ""; $machine .= sys_get_temp_dir(); $machine .= $extra; $os = Utils::getOS();