Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-13572 do not send emails to invalid addresses

  • Loading branch information...
commit 5a72f968438b6ee52bddab98696bdd73bd980d91 1 parent 63601aa
@skodak skodak authored samhemelryk committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  message/output/email/message_output_email.php
1  message/output/email/message_output_email.php
@@ -51,6 +51,7 @@ function send_message($eventdata) {
//check if the recipient has a different email address specified in their messaging preferences Vs their user profile
$emailmessagingpreference = get_user_preferences('message_processor_email_email', null, $eventdata->userto);
+ $emailmessagingpreference = clean_param($emailmessagingpreference, PARAM_EMAIL);
if (!empty($emailmessagingpreference)) {
//clone to avoid altering the actual user object
$recipient = clone($eventdata->userto);
Please sign in to comment.
Something went wrong with that request. Please try again.