Escape pop3 error messages. Props xknown. fixes #5484

git-svn-id: http://svn.automattic.com/wordpress/trunk@6404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-18 20:06:37 +00:00
parent 2c49f4748b
commit b7f907b875

View File

@ -12,14 +12,14 @@ $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));
if (!$pop3->user(get_option('mailserver_login')))
wp_die($pop3->ERROR);
wp_die(wp_specialchars($pop3->ERROR));
$count = $pop3->pass(get_option('mailserver_pass'));
if (false === $count)
wp_die($pop3->ERROR);
wp_die(wp_specialchars($pop3->ERROR));
if (0 == $count)
echo "<p>There doesn't seem to be any new mail.</p>\n"; // will fall-through to end of for loop