]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
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 7b75765b2cd51a0df87f14ac77ff4ca801540ab1..9f960b4c09ea43355374f707ed2bbaaf2c731400 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){