diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-09 16:11:05 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-09 16:11:12 -0500 |
commit | dabcf28c6af506268941d2612d738815247e9fb8 (patch) | |
tree | bab1048f46359b07fea2a6045a659b9789c8c6a5 /usr/local | |
parent | c90ba62d265223430663da04e5683ddcf0583fba (diff) | |
download | pfsense-dabcf28c6af506268941d2612d738815247e9fb8.zip pfsense-dabcf28c6af506268941d2612d738815247e9fb8.tar.gz |
Turn off file size check
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/crash_reporter.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php index 8b03936..b82589a 100755 --- a/usr/local/www/crash_reporter.php +++ b/usr/local/www/crash_reporter.php @@ -49,10 +49,8 @@ function upload_crash_report($files) { $post = array(); $counter = 0; foreach($files as $file) { - if(filesize($cf) < FILE_SIZE) { - $post["file{$counter}"] = "@{$file}"; - $counter++; - } + $post["file{$counter}"] = "@{$file}"; + $counter++; } $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); @@ -122,7 +120,7 @@ $crash_report_header .= "\nCrash report details:\n"; exit; } else { $crash_files = glob("/var/crash/*"); - $crash_reports .= $crash_report_header; + $crash_reports = $crash_report_header; if(is_array($crash_files)) { foreach($crash_files as $cf) { if(filesize($cf) < FILE_SIZE) { |