1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Close buffers when sending the response

This commit is contained in:
SecretR
2013-04-12 14:53:58 +03:00
parent 9d32fbd2ac
commit 3dadf6255e

View File

@@ -183,6 +183,7 @@ class e_jshelper
} }
if(null !== $action) echo $this->buildXmlResponse(); if(null !== $action) echo $this->buildXmlResponse();
while (@ob_end_flush());
exit; exit;
} }
@@ -211,6 +212,7 @@ class e_jshelper
$this->addResponseAction($action, $data_array); $this->addResponseAction($action, $data_array);
} }
if(null !== $action) echo $this->buildJSONResponse(); if(null !== $action) echo $this->buildJSONResponse();
while (@ob_end_flush());
exit; exit;
} }
@@ -254,6 +256,7 @@ class e_jshelper
{ {
header('Content-type: text/html; charset='.CHARSET, true); header('Content-type: text/html; charset='.CHARSET, true);
echo $this->addTextResponse($data_text)->buildTextResponse(); echo $this->addTextResponse($data_text)->buildTextResponse();
while (@ob_end_flush());
exit; exit;
} }
@@ -334,7 +337,7 @@ class e_jshelper
//Safari expects some kind of output, even empty //Safari expects some kind of output, even empty
echo ($errextended ? $errextended : ' '); echo ($errextended ? $errextended : ' ');
while (@ob_end_flush());
exit; exit;
} }