Workaround base64 padding/start

pull/214/head
M66B 12 months ago
parent 93cbde951c
commit fbbdb84a25

@ -3486,6 +3486,9 @@ public class MessageHelper {
static byte[] decodeWord(String word, String encoding, String charset) throws IOException { static byte[] decodeWord(String word, String encoding, String charset) throws IOException {
String e = encoding.trim(); String e = encoding.trim();
if (e.equalsIgnoreCase("B"))
while (word.startsWith("="))
word = word.substring(1);
ByteArrayInputStream bis = new ByteArrayInputStream(ASCIIUtility.getBytes(word)); ByteArrayInputStream bis = new ByteArrayInputStream(ASCIIUtility.getBytes(word));
InputStream is; InputStream is;

Loading…
Cancel
Save