aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-03-07 15:44:10 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2014-03-07 15:44:10 -0500
commit66c2763650a2543071042d6ca523e984dca146a1 (patch)
tree23940ce048cc02e3b512393a0134d1e520d332af /config
parenta0b0e148eaf46486906888b497640300f5c34875 (diff)
downloadpfsense-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.php6
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(":", ":&#8203;", $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(":", ":&#8203;", $fields[11]);
$suricata_alerts[$counter]['dstport'] = $fields[12];
$suricata_alerts[$counter]['priority'] = $fields[7];
$suricata_alerts[$counter]['category'] = $fields[6];