diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 22:16:09 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 22:16:09 -0500 |
commit | 85c3229a577d77c39a7098a6dbd104da21355dbe (patch) | |
tree | 5a8f9739b0b02f911c363f7cead2a599841928e3 /usr/local | |
parent | 9b700cf262e41678153f74af10a8d19b24bb64a8 (diff) | |
download | pfsense-85c3229a577d77c39a7098a6dbd104da21355dbe.zip pfsense-85c3229a577d77c39a7098a6dbd104da21355dbe.tar.gz |
Limit file sizes to roughly 143k
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/crash_reporter.php | 6 |
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."; |