diff options
author | Robin Sowell <robin.sowell@ellislab.com> | 2010-03-19 16:15:28 +0100 |
---|---|---|
committer | Robin Sowell <robin.sowell@ellislab.com> | 2010-03-19 16:15:28 +0100 |
commit | 76b369e191f4432ceba51ba7d7993c4ea54579ae (patch) | |
tree | 665ac4a9af07b2ea7ee3c242c549e408d0532059 /system/helpers | |
parent | 66a3fc0a7dc6ae84da4a1e852e4458fda7714567 (diff) |
Changed a few strstr to strpos for consistency w performance guidelines and to mirror EE2.
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/download_helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 638ebaa88..eac024fcb 100644 --- a/system/helpers/download_helper.php +++ b/system/helpers/download_helper.php @@ -71,7 +71,7 @@ if ( ! function_exists('force_download')) } // Generate the server headers - if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) + if (strpos($_SERVER['HTTP_USER_AGENT'], "MSIE") !== FALSE) { header('Content-Type: "'.$mime.'"'); header('Content-Disposition: attachment; filename="'.$filename.'"'); |