From: wmorgan Date: Wed, 19 Sep 2007 14:55:40 +0000 (+0000) Subject: possibly fix email address mangling in the presence of commas X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a0c7a9fed9f87a2e4c61f13b0a2da623c7f6fd8b;p=sup possibly fix email address mangling in the presence of commas git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@586 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/person.rb b/lib/sup/person.rb index 36f51fa..1c6e5f8 100644 --- a/lib/sup/person.rb +++ b/lib/sup/person.rb @@ -114,7 +114,7 @@ class Person def full_address if @name && @email - if @name =~ /"/ + if @name =~ /[",]/ "#{@name.inspect} <#@email>" # escape quotes else "#@name <#@email>"