firewall: Don't colourise MAC addresses.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Mar 2014 13:26:55 +0000 (14:26 +0100)
committerAlexander Marx <alexander.marx@ipfire.org>
Wed, 5 Mar 2014 07:05:52 +0000 (08:05 +0100)
Fixes #10491.

html/cgi-bin/firewall.cgi

index 6ddf745f33f9308719e8c6d4ba756c37a7790635..99a9e58e4c30c5e3c27b7443dad12dda1edc0952 100644 (file)
@@ -1294,6 +1294,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){