Skip to content

Commit

Permalink
Positively validate EUI-64 format
Browse files Browse the repository at this point in the history
  • Loading branch information
GhaziTriki authored and ikkez committed Jul 3, 2024
1 parent b9081c0 commit 8d6bf7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audit.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function entropy($str) {
**/
function mac($addr) {
return (bool)filter_var($addr,FILTER_VALIDATE_MAC)
|| !preg_match('/^([0-9a-f]{2}:){3}ff:fe(:[0-9a-f]{2}){3}$/i', $addr);
|| preg_match('/^([0-9a-f]{2}:){3}ff:fe(:[0-9a-f]{2}){3}$/i', $addr);
}

}

0 comments on commit 8d6bf7c

Please sign in to comment.