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); } }