Resolved Issue ID 0000544:

o Error on download HD picture 



git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1551 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2006-09-20 21:20:34 +00:00
parent daec750912
commit 5b8f59202c
+6 -1
View File
@@ -58,7 +58,12 @@ function force_download ($filename)
.basename($filename)."\";"); .basename($filename)."\";");
header("Content-Transfer-Encoding: binary"); header("Content-Transfer-Encoding: binary");
header("Content-Length: ".@filesize($filename)); header("Content-Length: ".@filesize($filename));
set_time_limit(0); // Looking at the safe_mode configuration for execution time
if (ini_get('safe_mode') == 0)
{
@set_time_limit(0);
}
@readfile("$filename") or die("File not found."); @readfile("$filename") or die("File not found.");
} }