diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 1ad6dfc092..830da2b90d 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -83,20 +83,6 @@ function send_avatar_to_browser($file, $browser) // Just dont send this header } - if (@readfile($file_path) == false) - { - $fp = @fopen($file_path, 'rb'); - - if ($fp !== false) - { - while (!feof($fp)) - { - echo fread($fp, 8192); - } - fclose($fp); - } - } - try { $fp = $storage->read_stream($file_path);