summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/firewall_rules.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php
index f5d4d5d..92a5f1a 100644
--- a/src/usr/local/www/firewall_rules.php
+++ b/src/usr/local/www/firewall_rules.php
@@ -680,14 +680,13 @@ foreach ($a_filter as $filteri => $filterent):
echo strtoupper($filterent['protocol']);
if (strtoupper($filterent['protocol']) == "ICMP" && !empty($filterent['icmptype'])) {
- echo ' <span style="cursor: help;" title="' . gettext('ICMP type') . ': ' .
- ($filterent['ipprotocol'] == "inet6" ? $icmp6types[$filterent['icmptype']] : $icmptypes[$filterent['icmptype']]) .
- '"><u>';
- echo $filterent['icmptype'];
- echo '</u></span>';
+ $t = array();
+ foreach (explode(',', $filterent['icmptype']) as $type) {
+ $t[] = $icmptypes[$type]['descrip'];
+ }
+ echo sprintf(' <span style="cursor: help;" title="%s:%s%s"><u>%s</u></span>', gettext('ICMP subtypes'), chr(13), implode(', ', $t), $filterent['icmptype']);
}
- } else echo "*";
-
+ } else echo " *";
?>
</td>
<td>
OpenPOWER on IntegriCloud