My-Little-Forum / mylittleforum

A simple PHP and MySQL based internet forum that displays the messages in classical threaded view (tree structure)
GNU General Public License v3.0
118 stars 47 forks source link

Mistake in URL GET parameter in contact links #671

Closed vihuna closed 1 year ago

vihuna commented 1 year ago

It seems there is a mistake in URL GET parameter for contact links:

user_id -> recipient_user_id in user and user_profile templates.

Without the id from a message, the $recipient_email must be taken from recipient_user_id GET parameter, as far as I understand.

user_id is the session user id. (its value is taken from $_SESSION), i.e., the sender and not the recipient user.

loesler commented 1 year ago

Yes, there seems to be an error. The user_id is the wrong parameter and the mail is not sent.

loesler commented 1 year ago

Works for me!