Skip to content

Commit df4eaba

Browse files
authored
Merge pull request #66 from netniV/Issue-65
Fix for issue #65: Extra separator on mac address
2 parents fa5c035 + fa08533 commit df4eaba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mactrack_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ function xform_mac_address($mac_address) {
18171817
}else{ /* return is hex */
18181818
$mac = "";
18191819
for ($j = 0; $j < strlen($mac_address); $j++) {
1820-
$mac .= bin2hex($mac_address[$j]) . read_config_option("mt_mac_delim");
1820+
$mac .= bin2hex($mac_address[$j]) . ($j == strlen($mac_address) ? '' : read_config_option("mt_mac_delim"));
18211821
}
18221822
$mac_address = $mac;
18231823
}

0 commit comments

Comments
 (0)