summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorstilez <stilezy@gmail.com>2014-02-19 14:09:50 +0000
committerstilez <stilezy@gmail.com>2014-02-19 14:09:50 +0000
commit30a840368fb30ddf138b730eb0f381749b49cff5 (patch)
treecf1327fc7ee13af3a708f22c5667957b69ec8f0c /usr
parent8fc2a648df386c07feb204767f6f8924ec3e60e8 (diff)
downloadpfsense-30a840368fb30ddf138b730eb0f381749b49cff5.zip
pfsense-30a840368fb30ddf138b730eb0f381749b49cff5.tar.gz
Filter log - ensure IPv6 AJAX resolve works too
Using str_replace(array('.', ':') as asked
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_filter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index cd80ab0..0daefcf 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 = preg_replace('/[.:]/', '-', $filterent['srcip']);
+ $src_htmlclass = str_replace(array('.', ':'), '-', $filterent['srcip']);
$dststr = $filterent['dstip'] . get_port_with_service($filterent['dstport'], $proto);
- $dst_htmlclass = preg_replace('/[.:]/', '-', $filterent['dstip']);
+ $dst_htmlclass = str_replace(array('.', ':'), '-', $filterent['dstip']);
?>
<td class="listMRr nowrap">
<img onclick="javascript:resolve_with_ajax('<?php echo "{$filterent['srcip']}"; ?>');" title="<?=gettext("Click to resolve");?>" class="ICON-<?= $src_htmlclass; ?>" border="0" src="/themes/<?= $g['theme']; ?>/images/icons/icon_log.gif" alt="Icon Reverse Resolve with DNS"/>
OpenPOWER on IntegriCloud