Skip to content

Commit

Permalink
Merge pull request #141 from Tuetuopay/master
Browse files Browse the repository at this point in the history
Fixed a bug where adding custom functions to Object.prototype resulte…
  • Loading branch information
eleith committed Jan 18, 2016
2 parents 452d2ef + 5e3f5a9 commit b4b8294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtp/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ var MessageStream = function(message)

for(var header in self.message.header)
{
// do not output BCC in the headers...
if(!(/bcc/i.test(header)))
// do not output BCC in the headers (regex) nor custom Object.prototype functions...
if(!(/bcc/i.test(header)) && self.message.header.hasOwnProperty (header))
data = data.concat([fix_header_name_case(header), ": ", self.message.header[header], CRLF]);
}

Expand Down

0 comments on commit b4b8294

Please sign in to comment.