Skip to content

Commit

Permalink
Resolved Issue ID 0000544:
Browse files Browse the repository at this point in the history
  o Error on download HD picture 

Merge branch-1_6 1550:1551 into BSF


git-svn-id: http://piwigo.org/svn/trunk@1552 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rub committed Sep 20, 2006
1 parent 2122def commit 31e12d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.php
Expand Up @@ -58,7 +58,13 @@ function force_download ($filename)
.basename($filename)."\";");
header("Content-Transfer-Encoding: binary");
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.");
}

Expand Down

0 comments on commit 31e12d0

Please sign in to comment.