Skip to content

Commit fa08533

Browse files
committed
Fix for issue #65: Extra separator on mac address
1 parent 778934c commit fa08533

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
@@ -1811,7 +1811,7 @@ function xform_mac_address($mac_address) {
18111811
}else{ /* return is hex */
18121812
$mac = "";
18131813
for ($j = 0; $j < strlen($mac_address); $j++) {
1814-
$mac .= bin2hex($mac_address[$j]) . read_config_option("mt_mac_delim");
1814+
$mac .= bin2hex($mac_address[$j]) . ($j == strlen($mac_address) ? '' : read_config_option("mt_mac_delim"));
18151815
}
18161816
$mac_address = $mac;
18171817
}

0 commit comments

Comments
 (0)