Skip to content

Commit

Permalink
Merge pull request #66 from netniV/Issue-65
Browse files Browse the repository at this point in the history
Fix for issue #65: Extra separator on mac address
  • Loading branch information
cigamit authored Feb 16, 2018
2 parents fa5c035 + fa08533 commit df4eaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mactrack_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1817,7 +1817,7 @@ function xform_mac_address($mac_address) {
}else{ /* return is hex */
$mac = "";
for ($j = 0; $j < strlen($mac_address); $j++) {
$mac .= bin2hex($mac_address[$j]) . read_config_option("mt_mac_delim");
$mac .= bin2hex($mac_address[$j]) . ($j == strlen($mac_address) ? '' : read_config_option("mt_mac_delim"));
}
$mac_address = $mac;
}
Expand Down

0 comments on commit df4eaba

Please sign in to comment.