diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-20 16:57:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-20 16:57:22 +0000 |
commit | 89c8e6d646a56ab8dad39327361113b41556d569 (patch) | |
tree | 4bc5e751d851a25c1592b710b54f6e4a8db21aa1 /usr/local/www/guiconfig.inc | |
parent | 948a48381928046a2755de5fc03ad4e5e91a549b (diff) | |
download | pfsense-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-x | usr/local/www/guiconfig.inc | 5 |
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"; |