diff options
author | rub <rub@piwigo.org> | 2006-09-20 21:20:34 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-09-20 21:20:34 +0000 |
commit | 5b8f59202ca841dfa75e4892893d19559ea0ae0e (patch) | |
tree | 22f254b694c14570a8cd7946d1335ab7163f5327 | |
parent | daec7509121c872c878c46974ab0f03d27994851 (diff) |
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
-rw-r--r-- | action.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/action.php b/action.php index c20b07d3a..8aa29fe90 100644 --- a/action.php +++ b/action.php @@ -58,7 +58,12 @@ 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."); } |