From 8ca67c79d971d6c5e39bb124674f31ba8bc808d6 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 12 Sep 2016 15:12:39 +0800 Subject: [PATCH] * fix bug #888. --- module/file/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;