diff --git a/module/file/control.php b/module/file/control.php index 6d9a438dfc..b6350ffc19 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -223,7 +223,7 @@ class file extends control if(strpos($fileName, $extension) === false) $fileName .= $extension; /* urlencode the filename for ie. */ - if(strpos($this->server->http_user_agent, 'Trident') !== false) $fileName = urlencode($fileName); + if(strpos($this->server->http_user_agent, 'MSIE') !== false or strpos($this->server->http_user_agent, 'Trident') !== false) $fileName = urlencode($fileName); /* Judge the content type. */ $mimes = $this->config->file->mimes;