summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/download_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 5e47fc5c9..ee3d78f25 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -91,7 +91,8 @@ if (! function_exists('force_download'))
header("Content-Length: ".strlen($data));
}
- exit($data);
+ echo $data;
+ exit; // exit($data); // didn't work on some browsers
}
}