WordPress.org

Ready to get started?Download WordPress

Forums

wp-mail.php bug (2 posts)

  1. jamix
    Member
    Posted 9 years ago #

    Hey WP developers,

    There's a bug in current wp-mail.php which prevents it from correctly processing e-mails with subjects in quoted-printable encoding. In lines 53-55, we have this:

    if (!preg_match('#\=\?(.+)\?Q\?(.+)\?\=#i', $subject)) {
    $subject = wp_iso_descrambler($subject);
    }

    First of all, the regex check is incorrect - it should be

    // No exclamation mark.
    if (preg_match('#\=\?(.+)\?Q\?(.+)\?\=#i', $subject)) {
    $subject = wp_iso_descrambler($subject);
    }

    Even more, however, - this regex check is unnecessary here, since it's done (correctly) in wp_iso_descrambler () anyway. So these three lines have to simply be replaced with:

    $subject = wp_iso_descrambler($subject);

    I've found this bug while experimenting with the blogging via e-mail feature. After the fix, everything works beautifully.

    Thanks for the great product!

  2. skippy
    Member
    Posted 9 years ago #

    Can you please open a ticket at the bug tracker? Please also include a patch, if possible. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags