Changeset 3475

Show
Ignore:
Timestamp:
01/23/06 23:49:22 (3 years ago)
Author:
ryan
Message:

wp-mail quote escaping fix from majelbstoat. fixes #2209

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-mail.php

    r3085 r3475  
    6262                $author=trim($line); 
    6363            if ( ereg("([a-zA-Z0-9\_\-\.]+@[\a-zA-z0-9\_\-\.]+)", $author , $regs) ) { 
    64                 echo "Author = {$regs[1]} <p>"; 
    65                 $result = $wpdb->get_row("SELECT ID FROM $tableusers WHERE user_email='$regs[1]' ORDER BY ID DESC LIMIT 1"); 
     64                $author = $regs[1]; 
     65                echo "Author = {$author} <p>"; 
     66                $author = $wpdb->escape($author); 
     67                $result = $wpdb->get_row("SELECT ID FROM $wpdb->users WHERE user_email='$author' LIMIT 1"); 
    6668                if (!$result) 
    6769                    $post_author = 1;