From 0ba66e9293e106469894d84268b997a67f71e105 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 4 Mar 2014 14:26:55 +0100 Subject: [PATCH] firewall: Don't colourise MAC addresses. Fixes #10491. --- html/cgi-bin/firewall.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 7b75765b2..9f960b4c0 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1286,6 +1286,12 @@ sub getcolor my $val=shift; my $hash=shift; if($optionsfw{'SHOWCOLORS'} eq 'on'){ + # Don't colourise MAC addresses + if (&General::validmac($val)) { + $tdcolor = ""; + return; + } + #custom Hosts if ($nettype eq 'cust_host_src' || $nettype eq 'cust_host_tgt'){ foreach my $key (sort keys %$hash){ -- 2.39.2