Advertisement:

Author Topic: "Invalid character used in email" in SEND TOPIC TO FRIEND  (Read 3534 times)

Offline PeterEkberg

  • Semi-Newbie
  • *
  • Posts: 11
"Invalid character used in email" in SEND TOPIC TO FRIEND
« 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

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,121
  • Gender: Male
    • Kindred-999 on GitHub
Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
« Reply #1 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
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,361
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
« Reply #2 on: May 17, 2017, 02:53:34 PM »
Looks like this edit was wrong in sendtopic.php
Code: [Select]
if (filter_var($_POST['ryemail'], FILTER_VALIDATE_EMAIL) === false
Should be
Code: [Select]
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
« Last Edit: July 06, 2017, 07:05:09 AM by Steve »
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline desertcities

  • Semi-Newbie
  • *
  • Posts: 44
    • @AdventistNews7 on Twitter
    • Adventist Domains
Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
« Reply #3 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.

:)

Offline forumite

  • Charter Member
  • Full Member
  • *
  • Posts: 408
    • The RV Forum
Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
« Reply #4 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  ???

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,061
    • Arantor on GitHub
Re: "Invalid character used in email" in SEND TOPIC TO FRIEND
« Reply #5 on: October 26, 2017, 03:39:47 AM »
Yes, it should.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.