]> git.cworth.org Git - sup/commitdiff
possibly fix email address mangling in the presence of commas
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 19 Sep 2007 14:55:40 +0000 (14:55 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 19 Sep 2007 14:55:40 +0000 (14:55 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@586 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/person.rb

index 36f51faf9269e07fe1ee60d42dc3fd4a26d23d84..1c6e5f8f095f15f70ef7f586fe1254efdcbcd9f8 100644 (file)
@@ -114,7 +114,7 @@ class Person
 
   def full_address
     if @name && @email
-      if @name =~ /"/
+      if @name =~ /[",]/
         "#{@name.inspect} <#@email>" # escape quotes
       else
         "#@name <#@email>"