diff options
author | stilez <stilezy@gmail.com> | 2014-02-19 14:09:50 +0000 |
---|---|---|
committer | stilez <stilezy@gmail.com> | 2014-02-19 14:09:50 +0000 |
commit | 30a840368fb30ddf138b730eb0f381749b49cff5 (patch) | |
tree | cf1327fc7ee13af3a708f22c5667957b69ec8f0c /usr | |
parent | 8fc2a648df386c07feb204767f6f8924ec3e60e8 (diff) | |
download | pfsense-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-x | usr/local/www/diag_logs_filter.php | 4 |
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"/> |