diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-07 15:44:10 -0500 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2014-03-07 15:44:10 -0500 |
commit | 66c2763650a2543071042d6ca523e984dca146a1 (patch) | |
tree | 23940ce048cc02e3b512393a0134d1e520d332af /config | |
parent | a0b0e148eaf46486906888b497640300f5c34875 (diff) | |
download | pfsense-packages-66c2763650a2543071042d6ca523e984dca146a1.tar.gz pfsense-packages-66c2763650a2543071042d6ca523e984dca146a1.tar.bz2 pfsense-packages-66c2763650a2543071042d6ca523e984dca146a1.zip |
Add fix for IPv6 address overflowing column layout.
Diffstat (limited to 'config')
-rw-r--r-- | config/suricata/suricata_alerts.widget.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config/suricata/suricata_alerts.widget.php b/config/suricata/suricata_alerts.widget.php index 370c6e96..c9cfc98e 100644 --- a/config/suricata/suricata_alerts.widget.php +++ b/config/suricata/suricata_alerts.widget.php @@ -134,9 +134,11 @@ function suricata_widget_get_alerts() { $suricata_alerts[$counter]['timestamp'] = strval(date_timestamp_get($event_tm)); $suricata_alerts[$counter]['timeonly'] = date_format($event_tm, "H:i:s"); $suricata_alerts[$counter]['dateonly'] = date_format($event_tm, "M d"); - $suricata_alerts[$counter]['src'] = $fields[9]; + // Add zero-width space as soft-break opportunity after each colon in any IPv6 address + $suricata_alerts[$counter]['src'] = str_replace(":", ":​", $fields[9]); $suricata_alerts[$counter]['srcport'] = $fields[10]; - $suricata_alerts[$counter]['dst'] = $fields[11]; + // Add zero-width space as soft-break opportunity after each colon in any IPv6 address + $suricata_alerts[$counter]['dst'] = str_replace(":", ":​", $fields[11]); $suricata_alerts[$counter]['dstport'] = $fields[12]; $suricata_alerts[$counter]['priority'] = $fields[7]; $suricata_alerts[$counter]['category'] = $fields[6]; |