summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-11-21 09:55:40 +0200
committerWarren Baker <warren@decoy.co.za>2012-11-21 09:55:40 +0200
commit55e5514760cf2661eb7b43b1d834161479fbb472 (patch)
treeceb55acfe46921a41cdb3df919aaa72b523d70b6 /usr/local/www/widgets
parent8c8a5598c9a72465a864718e8f4ef71ec4af01f0 (diff)
downloadpfsense-55e5514760cf2661eb7b43b1d834161479fbb472.zip
pfsense-55e5514760cf2661eb7b43b1d834161479fbb472.tar.gz
If destination is larger than 15 then truncate it, otherwise blocks like VRRP advertisements push the values out
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/log.widget.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/log.widget.php b/usr/local/www/widgets/widgets/log.widget.php
index 84f6585..cb08fe1 100644
--- a/usr/local/www/widgets/widgets/log.widget.php
+++ b/usr/local/www/widgets/widgets/log.widget.php
@@ -121,7 +121,7 @@ function format_log_line(row) {
&nbsp;<a href="#" onClick="javascript:getURL('diag_logs_filter.php?getrulenum=<?php echo "{$filterent['rulenum']},{$filterent['act']}"; ?>', outputrule);"><img border="0" src="<?php echo find_action_image($filterent['act']);?>" alt="<?php echo $filterent['act'];?>" title="<?php echo $filterent['act'];?>" /></a>&nbsp;</span>
<span class="log-interface-mini"><?php echo htmlspecialchars($filterent['interface']);?>&nbsp;</span>
<span class="log-source-mini"><?php echo htmlspecialchars($filterent['src']);?>&nbsp;</span>
- <span class="log-destination-mini"><?php echo htmlspecialchars($filterent['dst']);?>&nbsp;</span>
+ <span class="log-destination-mini"><?php echo (strlen($filterent['dst'] < 15) ? htmlspecialchars($filterent['dst']) : htmlspecialchars(substr($filterent['dst'],0,15)).".."); ?>&nbsp;</span>
<?php
if ($filterent['proto'] == "TCP")
$filterent['proto'] .= ":{$filterent['tcpflags']}";
OpenPOWER on IntegriCloud