Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: PeterEkberg on May 17, 2017, 05:07:05 AM

Title: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: PeterEkberg on May 17, 2017, 05:07:05 AM
Seems as a bug as it is possible to send other mail as news.

I removed all text still same message.

SMF 2.0.14
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: Kindred on May 17, 2017, 02:50:15 PM
Confirmed...


click Send Topic

Enter details, plain text

response indicates the error, and the email is not sent
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: vbgamer45 on May 17, 2017, 02:53:34 PM
Looks like this edit was wrong in sendtopic.php

if (filter_var($_POST['ryemail'], FILTER_VALIDATE_EMAIL) === false

Should be
if (filter_var($_POST['y_email'], FILTER_VALIDATE_EMAIL) === false



Edited to fix code tag (not sure why it wasn't done before now) ~ Steve
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: desertcities on October 17, 2017, 10:26:44 PM
Thank you!

This same error happened to me recently.  Glad I found the fix in a Google search.

Fixed.

:)
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: forumite on October 25, 2017, 09:06:57 PM
Thanks for the confirmation and the fix; It solved the issue for me/my members. Presumably this will be fixed in the next rev of SMF  ???
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: Arantor on October 26, 2017, 03:39:47 AM
Yes, it should.
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: hitsme on April 07, 2019, 11:40:58 PM
should be moved to
https://www.simplemachines.org/community/index.php?board=37.0
Title: Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
Post by: live627 on April 08, 2019, 12:28:32 AM
For future reference: fixed in 2.0.15 https://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_2.0.15.tar.gz;smf_version=2.0.14#sources_sendtopic-php_2