Make WordPress Core

Changeset 6487


Ignore:
Timestamp:
12/24/2007 08:13:35 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-mail.php

    r6280 r6487  
    1313
    1414if (!$pop3->connect(get_option('mailserver_url'), get_option('mailserver_port')))
    15     wp_die($pop3->ERROR);
     15    wp_die(wp_specialchars($pop3->ERROR));
    1616
    1717$count = $pop3->login(get_option('mailserver_login'), get_option('mailserver_pass'));
     
    167167
    168168    if(!$pop3->delete($i)) {
    169         echo '<p>Oops '.$pop3->ERROR.'</p></div>';
     169        echo '<p>Oops '.wp_specialchars($pop3->ERROR).'</p></div>';
    170170        $pop3->reset();
    171171        exit;
Note: See TracChangeset for help on using the changeset viewer.