From 90fbd96eb2bc897df71548e72fb55ddff84117ce Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 14 Nov 2024 14:09:16 +0800 Subject: [PATCH] * [task#132170,doing,2h] fix doc title error. --- module/file/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/file/model.php b/module/file/model.php index 6c37d6ca7c..e4849eb549 100755 --- a/module/file/model.php +++ b/module/file/model.php @@ -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;