mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Move header() even further up just in case
... that ini_get() set_time_limit() would output anything..
This commit is contained in:
committed by
Pierrick Le Gall
parent
18ad3bf90c
commit
1e756464ef
+5
-5
@@ -210,17 +210,17 @@ 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)
|
||||
{
|
||||
@set_time_limit(0);
|
||||
}
|
||||
|
||||
foreach ($http_headers as $header)
|
||||
{
|
||||
header( $header );
|
||||
}
|
||||
|
||||
// Without clean and flush there may be some image download problems, or image can be corrupted after download
|
||||
if (ob_get_length() !== FALSE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user