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
1 changed files with 2 additions and 2 deletions

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"))
{