[wp-trac] Re: [WordPress Trac] #5169: Posting from email addresses with "hyphen" cannot be assigned to the user

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 10 18:09:53 GMT 2007


#5169: Posting from email addresses with "hyphen" cannot be assigned to the user
------------------------------------+---------------------------------------
 Reporter:  giannis1                |        Owner:  anonymous
     Type:  defect                  |       Status:  reopened 
 Priority:  high                    |    Milestone:  2.4      
Component:  General                 |      Version:  2.3      
 Severity:  normal                  |   Resolution:           
 Keywords:  has-patch dev-reviewed  |  
------------------------------------+---------------------------------------
Changes (by Bobcat):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Nope, still doesn't work.  It leaves the user name part of the From line;
 the part in quotes.  e.g.:  From line is:

 '''From: "User Name" <addr at domain.com>'''

 But your code sets $author to:

 '''!UserNameaddr at domain.com'''

 When the rest of the code needs:

 '''addr at domain.com'''

 The easiest thing to do might be to use the regexp from your first patch
 to isolate the addr at domain.com part, ''then'' call sanitize_email and
 is_email.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5169#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list