Permalink
Browse files

MDL-13572 do not send emails to invalid addresses

  • Loading branch information...
1 parent 267ff8c commit 64550fa6c19245cc684278d382adfc80a89c05d8 @skodak skodak committed with Sam Hemelryk Jan 2, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);

0 comments on commit 64550fa

Please sign in to comment.