Escape pop3 error messages. Props xknown. fixes #5484

git-svn-id: https://develop.svn.wordpress.org/trunk@6404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-12-18 20:06:37 +00:00
parent 3861075e5f
commit 7ca479d4c1
1 changed files with 4 additions and 4 deletions

View File

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