From 8d6bf7c05058ae7a7428767abe11b2d960ec023c Mon Sep 17 00:00:00 2001 From: Ghazi Triki Date: Mon, 24 Jun 2024 22:03:11 +0100 Subject: [PATCH] Positively validate EUI-64 format --- audit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audit.php b/audit.php index a97003f2..bf5bd26f 100644 --- a/audit.php +++ b/audit.php @@ -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); } }