This commit is contained in:
wangyidong
2016-09-12 15:12:39 +08:00
parent f9bef4922c
commit 8ca67c79d9
+1 -1
View File
@@ -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;