diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 09a683fe18..cd80ab0457 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -365,9 +365,9 @@ include("head.inc"); } $srcstr = $filterent['srcip'] . get_port_with_service($filterent['srcport'], $proto); - $src_htmlclass = str_replace('.', '-', $filterent['srcip']); + $src_htmlclass = preg_replace('/[.:]/', '-', $filterent['srcip']); $dststr = $filterent['dstip'] . get_port_with_service($filterent['dstport'], $proto); - $dst_htmlclass = str_replace('.', '-', $filterent['dstip']); + $dst_htmlclass = preg_replace('/[.:]/', '-', $filterent['dstip']); ?>