From 88731b5c6824f8b199e53a8ab7bdefeba533c9ba Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 14 Jan 2010 16:55:29 +0000 Subject: [PATCH] allow dash in OS name git-svn-id: http://www.observium.org/svn/observer/trunk@682 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index e8a8441f90..dce9efb9cb 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -115,7 +115,7 @@ function getHostOS($device) { $sysDescr = str_replace("\"", "", trim(shell_exec($sysDescr_cmd))); $dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path"); while ($file = readdir($dir_handle)) { - if( preg_match("/^discover-([a-z0-9]*).php/", $file) ) { + if( preg_match("/^discover-([a-z0-9\-]*).php/", $file) ) { include($config['install_dir'] . "/includes/osdiscovery/" . $file); } }