Skip to content

Commit

Permalink
Fixed mac address format lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
phpipam committed Jun 27, 2018
1 parent 3b88497 commit d22e502
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/login/captcha
2 changes: 1 addition & 1 deletion app/tools/mac-lookup/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$Result->show("info", _("No matches found for prefix")." ".$mac, false);
}
else {
$mac = strtoupper($User->reformat_mac_address ($mac, $format = 1));
$mac = strtoupper($User->reformat_mac_address ($mac, 1));
$mac_partial = explode(":", $mac);
// print
print "<div style='font-size:16px;'>Vendor: <strong>".$mac_vendor."</strong></div><hr>";
Expand Down
2 changes: 1 addition & 1 deletion functions/classes/class.Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ public function get_mac_address_vendor_details ($mac) {
if(strlen($mac)<4) { return ""; }
if(!$this->validate_mac ($mac)) { return ""; }
// reformat mac address
$mac = strtoupper($this->reformat_mac_address ($mac, $format = 1));
$mac = strtoupper($this->reformat_mac_address ($mac, 1));
$mac_partial = explode(":", $mac);
// get mac XML database

Expand Down

0 comments on commit d22e502

Please sign in to comment.