Changeset 6404

Show
Ignore:
Timestamp:
12/18/07 20:06:37 (7 months ago)
Author:
ryan
Message:

Escape pop3 error messages. Props xknown. fixes #5484

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-mail.php

    r6357 r6404  
    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 
    1717if (!$pop3->user(get_option('mailserver_login'))) 
    18     wp_die($pop3->ERROR); 
     18    wp_die(wp_specialchars($pop3->ERROR)); 
    1919 
    2020$count = $pop3->pass(get_option('mailserver_pass')); 
    2121if (false === $count) 
    22     wp_die($pop3->ERROR); 
     22    wp_die(wp_specialchars($pop3->ERROR)); 
    2323if (0 == $count) 
    2424    echo "<p>There doesn't seem to be any new mail.</p>\n"; // will fall-through to end of for loop 
     
    172172 
    173173    $post_ID = wp_insert_post($post_data); 
    174     if ( is_wp_error( $post_ID ) )  
     174    if ( is_wp_error( $post_ID ) ) 
    175175        echo "\n" . $post_ID->get_error_message(); 
    176176