improve mac search

git-svn-id: http://www.observium.org/svn/observer/trunk@3074 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-04-21 19:50:21 +00:00
parent 58d6b254e2
commit 53a7a04fbf

View File

@@ -41,7 +41,7 @@ echo('<table width="100%" cellspacing="0" cellpadding="5">');
$query = "SELECT * FROM `ports` AS P, `devices` AS D WHERE P.device_id = D.device_id ";
$query .= "AND `ifPhysAddress` LIKE ?";
$param = array("%".str_replace(':','',mres($_POST['address']))."%");
$param = array("%".str_replace(array(':', ' ', '-', '.', '0x'),'',mres($_POST['address']))."%");
if (is_numeric($_POST['device_id']))
{