Skip to content

Commit

Permalink
bugfix: remove deprecated function use
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton committed Jul 29, 2024
1 parent e90dc51 commit e6d10cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/local/store/s3/client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e6d10cb

Please sign in to comment.