Forums

[Plugin: Clean-Contact] chokes on apostrophes in blog title (3 posts)

  1. dnorman
    Member
    Posted 2 months ago #

    The title of my blog has an apostrophe in it - D'Arcy Norman dot net - and the emails sent by clean-contact are being borked with this error message on my server:

    A message that you sent contained one or more recipient addresses that were
    incorrectly constructed:
    
      D'Arcy Norman dot net<contact@domain.com>: malformed address: ;Arcy
    Norman dot net<contact@dom may not follow D&#039

    (I altered the email address in the error message so I don't get spammed)

    I've modified line 124 in clean-contact.php to only send the $to_email value in $to, and it works fine now. Might be safer to add some scrubbing of encoded characters before sending the message.

    http://wordpress.org/extend/plugins/clean-contact/

  2. checkfront
    Member
    Posted 2 months ago #

    Thanks - this has been fixed in the latest version just sent up (1.3.2).

    I've encased the from name in double quotes.

    Cheers,
    -Jason

  3. dnorman
    Member
    Posted 2 months ago #

    sweet! works like a charm. thanks!

Reply

You must log in to post.

About this Topic