1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Merge pull request #5248 from rubencm/ticket/15692

[ticket/15692] Move checks if file exists from adapter to storage
This commit is contained in:
Marc Alexander
2018-09-16 13:05:35 +02:00
committed by GitHub
11 changed files with 156 additions and 89 deletions

View File

@@ -223,9 +223,6 @@ function send_file_to_browser($attachment, $category)
}
}
// Close the db connection before sending the file etc.
file_gc(false);
if (!set_modified_headers($attachment['filetime'], $user->browser))
{
if ($size)
@@ -238,6 +235,9 @@ function send_file_to_browser($attachment, $category)
$fp = $storage->read_stream($filename);
// Close the db connection before sending the file etc.
file_gc(false);
if ($fp !== false)
{
$output = fopen('php://output', 'w+b');