summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-07 22:16:09 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-07 22:16:09 -0500
commit85c3229a577d77c39a7098a6dbd104da21355dbe (patch)
tree5a8f9739b0b02f911c363f7cead2a599841928e3 /usr/local/www/crash_reporter.php
parent9b700cf262e41678153f74af10a8d19b24bb64a8 (diff)
downloadpfsense-85c3229a577d77c39a7098a6dbd104da21355dbe.zip
pfsense-85c3229a577d77c39a7098a6dbd104da21355dbe.tar.gz
Limit file sizes to roughly 143k
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index ffd59f4..1599e0b 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -121,8 +121,10 @@ $crash_report_header .= "\nCrash report details:\n";
$crash_reports .= $crash_report_header;
if(is_array($crash_files)) {
foreach($crash_files as $cf) {
- $crash_reports .= "\nFilename: {$cf}\n";
- $crash_reports .= file_get_contents($cf);
+ if(filesize($cf) < 150000) {
+ $crash_reports .= "\nFilename: {$cf}\n";
+ $crash_reports .= file_get_contents($cf);
+ }
}
} else {
echo "Could not locate any crash data.";
OpenPOWER on IntegriCloud