]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16554 no striplashes in HEAD anymore
authorskodak <skodak>
Tue, 23 Sep 2008 20:51:47 +0000 (20:51 +0000)
committerskodak <skodak>
Tue, 23 Sep 2008 20:51:47 +0000 (20:51 +0000)
lib/moodlelib.php

index 763adb302efb62ceba662df765deb7d2acc59e31..9131f22006257401765f544a47343f18dc024855 100644 (file)
@@ -4110,7 +4110,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
         $mail->From     = $CFG->noreplyaddress;
         $mail->FromName = $from;
     } else if ($usetrueaddress and $from->maildisplay) {
-        $mail->From     = stripslashes($from->email);
+        $mail->From     = $from->email;
         $mail->FromName = fullname($from);
     } else {
         $mail->From     = $CFG->noreplyaddress;
@@ -4126,7 +4126,7 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $a
 
     $mail->Subject = substr($subject, 0, 900);
 
-    $mail->AddAddress(stripslashes($user->email), fullname($user) );
+    $mail->AddAddress($user->email, fullname($user) );
 
     $mail->WordWrap = $wordwrapwidth;                   // set word wrap