| 1 | 28a29 |
|---|
| 2 | > $content_transfer_encoding = ''; |
|---|
| 3 | 44a46,51 |
|---|
| 4 | > if (preg_match('/Content-Transfer-Encoding: /i', $line)) { |
|---|
| 5 | > $content_transfer_encoding = trim($line); |
|---|
| 6 | > $content_transfer_encoding = substr($content_transfer_encoding, 27, strlen($content_transfer_encoding)-14); |
|---|
| 7 | > $content_transfer_encoding = explode(';', $content_transfer_encoding); |
|---|
| 8 | > $content_transfer_encoding = $content_transfer_encoding[0]; |
|---|
| 9 | > } |
|---|
| 10 | 114a122,124 |
|---|
| 11 | > if (stristr($content_transfer_encoding, "quoted-printable") !== false) { |
|---|
| 12 | > $content = quoted_printable_decode($content); |
|---|
| 13 | > } |
|---|
| 14 | 120c130 |
|---|
| 15 | < echo "<p><b>Content-type:</b> $content_type, <b>boundary:</b> $boundary</p>\n"; |
|---|
| 16 | --- |
|---|
| 17 | > echo "<p><b>Content-type:</b> $content_type, <b>Content-Transfer-Encoding:</b> $content_transfer_encoding, <b>boundary:</b> $boundary</p>\n"; |
|---|