fixes #1746 Move header() even further up just in case

This commit is contained in:
plegall 2022-10-19 15:03:57 +02:00
parent aca077180b
commit bf65ae93c5

View file

@ -210,6 +210,11 @@ else
.basename($file).'";';
}
foreach ($http_headers as $header)
{
header( $header );
}
// Looking at the safe_mode configuration for execution time
if (ini_get('safe_mode') == 0)
{
@ -223,11 +228,6 @@ if (ob_get_length() !== FALSE)
}
flush();
foreach ($http_headers as $header)
{
header( $header );
}
@readfile($file);
?>