From 1503e05616c295e6f980134dc341fa1a66dc9672 Mon Sep 17 00:00:00 2001
From: donncha
Date: Wed, 2 Jan 2008 16:00:05 +0000
Subject: Merge with WP 2.3.2
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1172 7be80a69-a1ef-0310-a953-fb0f7c49ff36
---
wp-mail.php | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
(limited to 'wp-mail.php')
diff --git a/wp-mail.php b/wp-mail.php
index e510055..ab9ae84 100644
--- a/wp-mail.php
+++ b/wp-mail.php
@@ -12,7 +12,7 @@ $phone_delim = '::';
$pop3 = new POP3();
if (!$pop3->connect(get_option('mailserver_url'), get_option('mailserver_port')))
- wp_die($pop3->ERROR);
+ wp_die(wp_specialchars($pop3->ERROR));
$count = $pop3->login(get_option('mailserver_login'), get_option('mailserver_pass'));
if (0 == $count) wp_die(__('There doesn’t seem to be any new mail.'));
@@ -129,9 +129,6 @@ for ($i=1; $i <= $count; $i++) :
$content = explode($phone_delim, $content);
$content[1] ? $content = $content[1] : $content = $content[0];
- echo "Content-type: $content_type, Content-Transfer-Encoding: $content_transfer_encoding, boundary: $boundary
\n";
- echo "Raw content:
".$content.'
';
-
$content = trim($content);
$post_content = apply_filters('phone_content', $content);
@@ -161,12 +158,11 @@ for ($i=1; $i <= $count; $i++) :
do_action('publish_phone', $post_ID);
- echo "\nAuthor: $post_author
";
- echo "\nPosted title: $post_title
";
- echo "\nPosted content:
".$content.'
';
+ echo "\nAuthor: " . wp_specialchars($post_author) . "
";
+ echo "\nPosted title: " . wp_specialchars($post_title) . "
";
if(!$pop3->delete($i)) {
- echo '
Oops '.$pop3->ERROR.'
';
+ echo 'Oops '.wp_specialchars($pop3->ERROR).'
';
$pop3->reset();
exit;
} else {
--
cgit