Skip to content

Commit

Permalink
Re-enable qp and base64 decoders; qp still has problems. work on kyle…
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehuff committed May 27, 2014
1 parent 5da0966 commit 9e2000f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions extension/webmail/gmail/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,17 +1137,17 @@ webpg.gmail = {
}

// FIXME: the qp decodeder doesn't work well.
// if (dataEncoding === 'quoted_printable' ||
// dataEncoding === 'quoted-printable')
// data = webpg.utils.quoted_printable_decode(data);
// else if (dataEncoding === 'base64')
// data = webpg.utils.base64_decode(data);

// if (encoding === 'quoted_printable' ||
// encoding === 'quoted-printable')
// signature = (webpg.utils.quoted_printable_decode(signature) || null);
// else if (encoding === 'base64')
// signature = (webpg.utils.base64(signature) || null);
if (dataEncoding === 'quoted_printable' ||
dataEncoding === 'quoted-printable')
data = webpg.utils.quoted_printable_decode(data);
else if (dataEncoding === 'base64')
data = webpg.utils.base64_decode(data);

if (encoding === 'quoted_printable' ||
encoding === 'quoted-printable')
signature = (webpg.utils.quoted_printable_decode(signature) || null);
else if (encoding === 'base64')
signature = (webpg.utils.base64(signature) || null);

var doc = (node.ownerDocument || webpg.inline.doc || content.document || document);

Expand Down

0 comments on commit 9e2000f

Please sign in to comment.