Ticket #5484: wp-mail.diff

File wp-mail.diff, 0.9 kB (added by xknown, 7 months ago)
  • wp-mail.php

    old new  
    1212$pop3 = new POP3(); 
    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 
    2525 
     
    171171        $post_data = add_magic_quotes($post_data); 
    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 
    177177        if (!$post_ID) {