Skip to content

Commit

Permalink
Fix for bad parsing of reply with >|< chars; issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehuff committed May 12, 2013
1 parent da82a2a commit 4c58e54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extension/gmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ webpg.gmail = {
if (!send)
return;
}
message = webpg.utils.linkify(message).replace(/<(<.*?>)>/gim, "&lt;$1&gt;");
message = webpg.utils.linkify(message).replace(/<(<.*?>)>/gim, "&lt;$1&gt;").trim();
message += "\n\n";
webpg.utils.sendRequest({'msg': 'sign',
'signers': webpg.gmail.signers,
'message_event': 'gmail',
Expand Down
4 changes: 2 additions & 2 deletions extension/inline.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ webpg.inline = {

var scontent = webpg.utils.getInnerText(node.parentNode);

if (scontent.search(/^\s*?(-----BEGIN PGP.*?)/gi) < 0)
scontent = webpg.utils.clean(str);
// if (scontent.search(/^\s*?(-----BEGIN PGP.*?)/gi) < 0)
// scontent = webpg.utils.clean(str);

if (webpg.utils.detectedBrowser['product'] == 'thunderbird') {
var tmp_scontent = str.replace(new RegExp("<[^>]+>", "gim"), "");
Expand Down

0 comments on commit 4c58e54

Please sign in to comment.