From e6d10cb7d969b103447bb5b42dd7a39494827061 Mon Sep 17 00:00:00 2001 From: Matthew Hilton Date: Mon, 29 Jul 2024 15:21:49 +1000 Subject: [PATCH] bugfix: remove deprecated function use --- classes/local/store/s3/client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/local/store/s3/client.php b/classes/local/store/s3/client.php index 20f7e301..0309f8c9 100644 --- a/classes/local/store/s3/client.php +++ b/classes/local/store/s3/client.php @@ -667,7 +667,7 @@ private function get_nice_filename($headers) { if (!empty($originalfilename)) { $result['Content-Disposition'] = $contentdisposition; - $result['filename'] = 'filename="' . utf8_encode($originalfilename) . '"'; + $result['filename'] = 'filename="' . mb_convert_encoding($originalfilename, 'ISO-8859-1') . '"'; $result['Content-Type'] = $originalcontenttype; } }