Skip to content

Commit

Permalink
Remove use of utf8_encode (deprecated in PHP 8.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Feb 15, 2024
1 parent 789d092 commit 44e4ac9
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 @@ -604,7 +604,7 @@ private function get_nice_filename($headers) {

if (!empty($originalfilename)) {
$result['Content-Disposition'] = $contentdisposition;
$result['filename'] = 'filename="' . utf8_encode($originalfilename) . '"';
$result['filename'] = 'filename="' . $originalfilename . '"';
$result['Content-Type'] = $originalcontenttype;
}
}
Expand Down

0 comments on commit 44e4ac9

Please sign in to comment.