summaryrefslogtreecommitdiffstats
path: root/usr/local/www/guiconfig.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-20 16:57:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-20 16:57:22 +0000
commit89c8e6d646a56ab8dad39327361113b41556d569 (patch)
tree4bc5e751d851a25c1592b710b54f6e4a8db21aa1 /usr/local/www/guiconfig.inc
parent948a48381928046a2755de5fc03ad4e5e91a549b (diff)
downloadpfsense-89c8e6d646a56ab8dad39327361113b41556d569.zip
pfsense-89c8e6d646a56ab8dad39327361113b41556d569.tar.gz
Do not show log entries with busted dates due to CLOG support.
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-xusr/local/www/guiconfig.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 416d1e6..4492dd9 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -575,7 +575,10 @@ function dump_clog($logfile, $tail, $withorig = true, $grepfor = "", $grepinvert
$logent = preg_split("/\s+/", $logent, 6);
echo "<tr valign=\"top\">\n";
if ($withorig) {
- echo "<td class=\"listlr\" nowrap>" . htmlspecialchars(join(" ", array_slice($logent, 0, 3))) . "</td>\n";
+ $entry_date_time = htmlspecialchars(join(" ", array_slice($logent, 0, 3)));
+ if(strlen($entry_date_time) > 17)
+ continue;
+ echo "<td class=\"listlr\" nowrap>" . $entry_date_time . "</td>\n";
echo "<td class=\"listr\">" . htmlspecialchars($logent[4] . " " . $logent[5]) . "</td>\n";
} else {
echo "<td class=\"listlr\" colspan=\"2\">" . htmlspecialchars($logent[5]) . "</td>\n";
OpenPOWER on IntegriCloud