Escape pop3 error messages. Props xknown. fixes #5484 for 2.3

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6487 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-24 08:13:35 +00:00
parent a8e3706c40
commit cf2d1602b1
1 changed files with 2 additions and 2 deletions

View File

@ -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.'));
@ -166,7 +166,7 @@ for ($i=1; $i <= $count; $i++) :
echo "\n<b>Posted content:</b><br /><pre>".$content.'</pre></p>';
if(!$pop3->delete($i)) {
echo '<p>Oops '.$pop3->ERROR.'</p></div>';
echo '<p>Oops '.wp_specialchars($pop3->ERROR).'</p></div>';
$pop3->reset();
exit;
} else {