Skip to content

Commit

Permalink
Merge pull request #386 from iRaziul/3.x
Browse files Browse the repository at this point in the history
Update deprecated `utf8_encode` function to `mb_convert_encoding`
  • Loading branch information
awcodes authored Dec 18, 2023
2 parents 8d11bb5 + 888e8f0 commit 2e6ceaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Modals/CuratorPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function addFilesAction(): Action
if (!empty($item['exif'])) {
array_walk_recursive($item['exif'], function (&$entry) {
if (!mb_detect_encoding($entry, 'utf-8', true)) {
$entry = utf8_encode($entry);
$entry = mb_convert_encoding($entry, 'utf-8');
}
});
}
Expand Down

0 comments on commit 2e6ceaf

Please sign in to comment.