From 728b9abd54253b2ce0e43e38a11511db53153eed Mon Sep 17 00:00:00 2001 From: Kevin Fleshman Date: Mon, 9 Mar 2015 12:11:40 -0700 Subject: [PATCH] More generic detection from laf --- includes/discovery/os/hp.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/discovery/os/hp.inc.php b/includes/discovery/os/hp.inc.php index 4c3952ab4..22fbb1b7b 100644 --- a/includes/discovery/os/hp.inc.php +++ b/includes/discovery/os/hp.inc.php @@ -2,7 +2,7 @@ if (!$os) { - if (strstr($sysDescr, "HP V1910-")) { $os = "hp"; } + if(preg_match('/HP [a-zA-Z0-9-]+ Switch Software Version/',$string)) { $os = "hp"; } } ?>