unix.inc.php: correct preg_match() pattern on line 5 (#10999)

This commit is contained in:
Joseph Tingiris
2020-01-04 16:16:20 +01:00
committed by Jellyfrog
parent 0094940283
commit 03b6408e06
+1 -1
View File
@@ -2,7 +2,7 @@
if (in_array($device['os'], array("linux", "endian", "proxmox", "recoveryos"))) {
list(,,$version) = explode(" ", $device['sysDescr']);
if (preg_match('[3-6]86', $device['sysDescr'])) {
if (preg_match('/[3-6]86/', $device['sysDescr'])) {
$hardware = "Generic x86";
} elseif (strstr($device['sysDescr'], "x86_64")) {
$hardware = "Generic x86 64-bit";