Changeset 3475
- Timestamp:
- 01/23/06 23:49:22 (3 years ago)
- Files:
-
- trunk/wp-mail.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-mail.php
r3085 r3475 62 62 $author=trim($line); 63 63 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"); 66 68 if (!$result) 67 69 $post_author = 1;
