1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Make decodeQ() actually use the "fixed up" string. Will fix Q-encoded subjects where space is encoded as "_".

Fixes issue 2926
This commit is contained in:
cketti 2011-01-30 03:00:46 +00:00
parent dfda1b60a3
commit bec094326a

View File

@ -84,7 +84,7 @@ public class DecoderUtil
byte[] bytes;
try
{
bytes = encodedWord.getBytes("US-ASCII");
bytes = sb.toString().getBytes("US-ASCII");
}
catch (UnsupportedEncodingException e)
{
@ -213,7 +213,7 @@ public class DecoderUtil
if (encoding.equalsIgnoreCase("Q"))
{
return DecoderUtil.decodeQ(encodedText, charset);
return decodeQ(encodedText, charset);
}
else if (encoding.equalsIgnoreCase("B"))
{