From 9202d4eee77550b77d0c4828e95fdd077dd35dc1 Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Sat, 1 Jun 2013 17:47:58 -0400 Subject: Add HTML markup to wrap IPv6 address in Alert and Blocked tabs. --- config/snort/snort_blocked.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/snort/snort_blocked.php') diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php index 5fb7e608..43b351ab 100644 --- a/config/snort/snort_blocked.php +++ b/config/snort/snort_blocked.php @@ -249,10 +249,13 @@ if ($pconfig['brefresh'] == 'on') else $counter++; + /* Add zero-width space as soft-break opportunity after each colon if we have an IPv6 address */ + $tmp_ip = str_replace(":", ":​", $blocked_ip); + /* use one echo to do the magic*/ echo " {$counter} - {$blocked_ip} + {$tmp_ip} {$blocked_desc} \"Delete -- cgit v1.2.3