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:
parent
3861075e5f
commit
7ca479d4c1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user