aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download/file.php')
-rw-r--r--phpBB/download/file.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php
index 09677738a5..dc3a14eb4c 100644
--- a/phpBB/download/file.php
+++ b/phpBB/download/file.php
@@ -479,6 +479,10 @@ function send_file_to_browser($attachment, $upload_dir, $category)
{
header("Content-Length: $size");
}
+
+ // Close the db connection before sending the file
+ $db->sql_close();
+
if (!set_modified_headers($attachment['filetime'], $user->browser))
{
// Try to deliver in chunks