Commit 80c922f4 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) remove ob_flush without ob_start in crash_reporter.php

parent c0a2fc39
...@@ -92,7 +92,6 @@ $crash_report_header = sprintf( ...@@ -92,7 +92,6 @@ $crash_report_header = sprintf(
<?php <?php
if (isset($_POST['Submit']) && $_POST['Submit'] == 'yes') { if (isset($_POST['Submit']) && $_POST['Submit'] == 'yes') {
echo '<p>' . gettext('Processing...'); echo '<p>' . gettext('Processing...');
ob_flush();
flush(); flush();
if (!is_dir('/var/crash')) { if (!is_dir('/var/crash')) {
mkdir('/var/crash', 0750, true); mkdir('/var/crash', 0750, true);
...@@ -102,7 +101,6 @@ $crash_report_header = sprintf( ...@@ -102,7 +101,6 @@ $crash_report_header = sprintf(
exec('/usr/bin/gzip /var/crash/*'); exec('/usr/bin/gzip /var/crash/*');
$files_to_upload = glob('/var/crash/*'); $files_to_upload = glob('/var/crash/*');
echo gettext('ok') . '<br/>' . gettext('Uploading...'); echo gettext('ok') . '<br/>' . gettext('Uploading...');
ob_flush();
flush(); flush();
$resp = upload_crash_report($files_to_upload); $resp = upload_crash_report($files_to_upload);
echo ($resp ? gettext('ok') : gettext('failed')) . '</p>'; echo ($resp ? gettext('ok') : gettext('failed')) . '</p>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment