Ticket #209: 209.diff
File 209.diff, 708 bytes (added by , 18 years ago) |
---|
-
wp-includes/pluggable.php
161 161 "From: wordpress@" . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])) . "\n" . 162 162 "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 163 163 } 164 165 // Escape the subject according to the blog's set charset 166 $subject = preg_replace('/([^a-z ])/ie', 'sprintf(\'=%02x\', ord(stripslashes(\'\1\')))', $subject); 167 $subject = str_replace(' ', '_', $subject); 168 $subject = "=?$charset?Q?$subject?="; 164 169 165 170 return @mail($to, $subject, $message, $headers); 166 171 }