Skip to content

Commit

Permalink
Fix for issue #65: Extra separator on mac address
Browse files Browse the repository at this point in the history
  • Loading branch information
netniV committed Feb 16, 2018
1 parent 778934c commit fa08533
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 @@ -1811,7 +1811,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 fa08533

Please sign in to comment.