mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 06:25:04 +02:00
[ticket/9790] Always call file_gc(false) before sending the file.
This also unloads the cache before the file is send. PHPBB3-9790
This commit is contained in:
parent
0f88b847fc
commit
19931713db
@ -224,8 +224,8 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||
header("Content-Length: $size");
|
||||
}
|
||||
|
||||
// Close the db connection before sending the file
|
||||
$db->sql_close();
|
||||
// Close the db connection before sending the file etc.
|
||||
file_gc(false);
|
||||
|
||||
if (!set_modified_headers($attachment['filetime'], $user->browser))
|
||||
{
|
||||
@ -259,7 +259,8 @@ function send_file_to_browser($attachment, $upload_dir, $category)
|
||||
|
||||
flush();
|
||||
}
|
||||
file_gc();
|
||||
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user