Skip to content

Commit

Permalink
fix encoding edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
mathe42 authored Sep 4, 2022
1 parent e775947 commit 82aec3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/mail/encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function hasNonAsciiCharacters(str: string) {
}

export function quotedPrintableEncodeInline(data: string) {
if (hasNonAsciiCharacters(data)) {
if (hasNonAsciiCharacters(data) || data.startsWith('=?')) {
return `=?utf-8?Q?${quotedPrintableEncode(data)}?=`;
}

Expand Down

0 comments on commit 82aec3a

Please sign in to comment.