1 | *** wp-mail.php~ 2007-09-18 09:32:22.000000000 -0700 |
---|
2 | --- wp-mail.php 2007-10-24 01:48:10.000000000 -0700 |
---|
3 | *************** |
---|
4 | *** 121,126 **** |
---|
5 | --- 121,129 ---- |
---|
6 | if (stripos($content_transfer_encoding, "quoted-printable") !== false) { |
---|
7 | $content = quoted_printable_decode($content); |
---|
8 | } |
---|
9 | + if (stripos($content_transfer_encoding, "base64") !== false) { |
---|
10 | + $content = base64_decode($content); |
---|
11 | + } |
---|
12 | |
---|
13 | // Captures any text in the body after $phone_delim as the body |
---|
14 | $content = explode($phone_delim, $content); |
---|
15 | *************** |
---|
16 | *** 137,142 **** |
---|
17 | --- 140,153 ---- |
---|
18 | |
---|
19 | if ($post_title == '') $post_title = $subject; |
---|
20 | |
---|
21 | + if (stripos($content_transfer_encoding, "base64") !== false) { |
---|
22 | + // $post_title might start with =?utf-8?B? |
---|
23 | + if (substr($post_title, 0, 10) == "=?utf-8?B?") { |
---|
24 | + $post_title = substr($post_title, 10); |
---|
25 | + } |
---|
26 | + $post_title = base64_decode($post_title); |
---|
27 | + } |
---|
28 | + |
---|
29 | if (empty($post_categories)) $post_categories[] = get_option('default_email_category'); |
---|
30 | |
---|
31 | $post_category = $post_categories; |
---|