summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorstilez <stilezy@gmail.com>2014-02-19 13:07:23 +0000
committerstilez <stilezy@gmail.com>2014-02-19 13:07:23 +0000
commit8fc2a648df386c07feb204767f6f8924ec3e60e8 (patch)
tree607a793a59efcce8676869e9c7d23065ff69ce8b /usr
parente09da6c2668f041851316bcb334263814a3daffe (diff)
downloadpfsense-8fc2a648df386c07feb204767f6f8924ec3e60e8.zip
pfsense-8fc2a648df386c07feb204767f6f8924ec3e60e8.tar.gz
Filter log - ensure IPv6 works too
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_logs_filter.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index 09a683f..cd80ab0 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']);
?>
<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"/>
@@ -447,7 +447,7 @@ function resolve_with_ajax(ip_to_resolve) {
function resolve_ip_callback(transport) {
var response = jQuery.parseJSON(transport.responseText);
- var resolve_class = htmlspecialchars(response.resolve_ip.replace(/\./g, '-'));
+ var resolve_class = htmlspecialchars(response.resolve_ip.replace(/[.:]/g, '-'));
var resolve_text = '<small><br/>' + htmlspecialchars(response.resolve_text) + '</small>';
jQuery('span.RESOLVE-' + resolve_class).html(resolve_text);
OpenPOWER on IntegriCloud