diff options
author | Sashi20 | 2020-08-12 16:50:06 +0530 |
---|---|---|
committer | Sashi20 | 2020-08-12 16:50:06 +0530 |
commit | f3bb80e8b54ce441125312a51dda42cca830d6b4 (patch) | |
tree | 54ac4d1f87b04f8199f6231c24efab477e6b9990 | |
parent | 1df01c36e0f579cea140f510b19eef83ad5719c6 (diff) | |
download | r_lab_migration-f3bb80e8b54ce441125312a51dda42cca830d6b4.tar.gz r_lab_migration-f3bb80e8b54ce441125312a51dda42cca830d6b4.tar.bz2 r_lab_migration-f3bb80e8b54ce441125312a51dda42cca830d6b4.zip |
Add ob_clean before readfile
-rwxr-xr-x | download.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/download.inc b/download.inc index dcd5608..d95c5a2 100755 --- a/download.inc +++ b/download.inc @@ -15,6 +15,7 @@ function lab_migration_download_solution_file() header('Content-Type: ' . $solution_file_data->filemime); header('Content-disposition: attachment; filename="' . str_replace(' ', '_', ($solution_file_data->filename)) . '"'); header('Content-Length: ' . filesize($root_path . $solution_file_data->directory_name . '/' . $solution_file_data->filepath)); + ob_clean(); readfile($root_path . $solution_file_data->directory_name . '/' . $solution_file_data->filepath); } function lab_migration_download_dependency_file() @@ -31,6 +32,7 @@ function lab_migration_download_dependency_file() header('Content-Type: ' . $dependency_file_data->filemime); header('Content-disposition: attachment; filename="' . str_replace(' ', '_', ($dependency_file_data->filename)) . '"'); header('Content-Length: ' . filesize($root_path . $dependency_file_data->filepath)); + ob_clean(); readfile($root_path . $dependency_file_data->filepath); } function lab_migration_download_solution() |