Skip to content

Commit

Permalink
Merge pull request Z-Hub#101 from matidau/unicode-1-1-utf-7
Browse files Browse the repository at this point in the history
Wrong encoding, conversion from "unicode-1-1-utf-7"
  • Loading branch information
matidau authored Aug 19, 2024
2 parents 871ddc6 + 5b495cf commit 94270c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/utils/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,9 @@ private static function convertRawHeader2Utf8($nonencstr, $utf8str) {
$str = "";
$striso2022jp = "";
foreach (@imap_mime_header_decode($nonencstr) as $val) {
if ($val->charset == "unicode-1-1-utf-7") {
$val->charset = "utf-7";
}
if (is_null($charset)) {
$charset = strtolower($val->charset);
}
Expand Down

0 comments on commit 94270c5

Please sign in to comment.