mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
fixes #1746 Move header() even further up just in case
This commit is contained in:
parent
aca077180b
commit
bf65ae93c5
1 changed files with 5 additions and 5 deletions
10
action.php
10
action.php
|
@ -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);
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue