From 03b6408e06210540fbde712567595d00be69dbf2 Mon Sep 17 00:00:00 2001 From: Joseph Tingiris Date: Sat, 4 Jan 2020 10:16:20 -0500 Subject: [PATCH] unix.inc.php: correct preg_match() pattern on line 5 (#10999) --- includes/polling/os/unix.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/os/unix.inc.php b/includes/polling/os/unix.inc.php index bdd44a5b88..f56aa32a75 100644 --- a/includes/polling/os/unix.inc.php +++ b/includes/polling/os/unix.inc.php @@ -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";