mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve mac search
git-svn-id: http://www.observium.org/svn/observer/trunk@3074 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user