summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-07 10:28:49 -0500
committerjim-p <jimp@pfsense.org>2011-02-07 10:28:49 -0500
commit4cd81611485724e8a071c5e34f132a4ec22d4548 (patch)
treef74a6dab5d46fca221d3c8d39a6d08697bfa38df /usr
parent104faa07f7dc51f4ef66e323299881c2ffbec0f6 (diff)
downloadpfsense-4cd81611485724e8a071c5e34f132a4ec22d4548.zip
pfsense-4cd81611485724e8a071c5e34f132a4ec22d4548.tar.gz
Fix check to ignore minfree (and the rest of $skip_files)
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/index.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index 980c87e..43520ba 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -62,10 +62,8 @@ $x = 0;
$skip_files = array(".", "..", "minfree", "");
if(is_array($crash)) {
foreach($crash as $c) {
- foreach($skip_files as $sf)
- if($sf == $c)
- continue;
- $x++;
+ if (!in_array(basename($c), $skip_files))
+ $x++;
}
if($x > 0)
$savemsg = "{$g['product_name']} has detected a crash report. Click <a href='crash_reporter.php'>here</a> for more information.";
OpenPOWER on IntegriCloud