firewall: Don't colourise MAC addresses.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Mar 2014 13:26:55 +0000 (14:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Mar 2014 13:27:36 +0000 (14:27 +0100)
Fixes #10491.

html/cgi-bin/firewall.cgi

index 7b75765..9f960b4 100644 (file)
@@ -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){