#245 File Download filename error fix for IE11

Make the code to find IE11
This commit is contained in:
MinSoo Kim 2014-01-02 11:12:43 +09:00
parent 20436466fc
commit 7f9e4e9a38

View file

@ -301,7 +301,7 @@ class fileController extends file
$file_size = $file_obj->file_size;
$filename = $file_obj->source_filename;
if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE"))
if(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || (strstr($_SERVER['HTTP_USER_AGENT'], 'Windows') && strstr($_SERVER['HTTP_USER_AGENT'], 'Trident') && strstr($_SERVER['HTTP_USER_AGENT'], 'rv')))
{
$filename = rawurlencode($filename);
$filename = preg_replace('/\./', '%2e', $filename, substr_count($filename, '.') - 1);