[-] CORE : Remove notices on ob clean
This commit is contained in:
@@ -602,7 +602,8 @@
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$buffer = ob_get_contents();
|
||||
ob_end_clean();
|
||||
if (ob_get_level() && ob_get_length() > 0)
|
||||
ob_end_clean();
|
||||
foreach (explode("\n", $buffer) as $line) {
|
||||
$line = array_map('trim', (explode('|', strip_tags(str_replace('</td>', '|', $line)))));
|
||||
if (isset($gd[$line[0]])) {
|
||||
|
||||
@@ -64,7 +64,8 @@ if ($fp === false)
|
||||
header('Content-Type: '.$contentType);
|
||||
header('Content-Disposition: attachment; filename="'.Tools::getValue('filename'). '"');
|
||||
|
||||
ob_clean();
|
||||
if (ob_get_level() && ob_get_length() > 0)
|
||||
ob_clean();
|
||||
$ret = @fpassthru($fp);
|
||||
|
||||
fclose($fp);
|
||||
|
||||
@@ -544,7 +544,8 @@ function runAdminTab($tab, $ajaxMode = false)
|
||||
if($ajaxMode)
|
||||
{
|
||||
// If this is an XSS attempt, then we should only display a simple, secure page
|
||||
ob_clean();
|
||||
if (ob_get_level() && ob_get_length() > 0)
|
||||
ob_clean();
|
||||
|
||||
// ${1} in the replacement string of the regexp is required, because the token may begin with a number and mix up with it (e.g. $17)
|
||||
$url = preg_replace('/([&?]token=)[^&]*(&.*)?$/', '${1}'.$adminObj->token.'$2', $_SERVER['REQUEST_URI']);
|
||||
@@ -559,7 +560,8 @@ function runAdminTab($tab, $ajaxMode = false)
|
||||
else
|
||||
{
|
||||
// If this is an XSS attempt, then we should only display a simple, secure page
|
||||
ob_clean();
|
||||
if (ob_get_level() && ob_get_length() > 0)
|
||||
ob_clean();
|
||||
|
||||
// ${1} in the replacement string of the regexp is required, because the token may begin with a number and mix up with it (e.g. $17)
|
||||
$url = preg_replace('/([&?]token=)[^&]*(&.*)?$/', '${1}'.$adminObj->token.'$2', $_SERVER['REQUEST_URI']);
|
||||
|
||||
Reference in New Issue
Block a user