* [task#132170,doing,2h] fix doc title error.

This commit is contained in:
tianshujie
2024-11-20 08:53:28 +08:00
committed by 刘梦艺
parent 8f1cfc6310
commit 90fbd96eb2
+1 -1
View File
@@ -1010,7 +1010,7 @@ class fileModel extends model
$contentType = isset($mimes[$fileType]) ? $mimes[$fileType] : $mimes['default'];
/* Safari浏览器下载文件名乱码问题。 */
if($fileType != 'zip' && preg_match("/Safari/", $_SERVER["HTTP_USER_AGENT"]))
if($_SERVER['CONTENT_TYPE'] == 'application/x-www-form-urlencoded' && preg_match("/Safari/", $_SERVER["HTTP_USER_AGENT"]))
{
$fileName = rawurlencode($fileName);
$attachment = 'attachment; filename*=utf-8\'\'' . $fileName;