f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
206 stars 89 forks source link

Adding new mac address validation for audit class #380

Closed GhaziTriki closed 4 months ago

GhaziTriki commented 5 months ago

The current implementation of FILTER_VALIDATE_MAC https://github.com/php/php-src/blob/f3feef8b931cd9c2c9ffa588d9044f077d54b9a3/ext/filter/logical_filters.c#L981 validates MAC-48/EUI-48 formats with colon, hyphen and dot (Cisco) styles. The mac function adds support for EUI-64 format.