Merge "Don't pass a MailAddress pass the email to mail()" into REL1_31
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 21 Oct 2018 17:33:31 +0000 (17:33 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 21 Oct 2018 17:33:31 +0000 (17:33 +0000)
RELEASE-NOTES-1.31
includes/mail/UserMailer.php

index e8c384a..2245aba 100644 (file)
@@ -15,6 +15,7 @@ THIS IS NOT A RELEASE YET
   not be set.
 * Fix PHP 7.3 warnings "preg_replace(): [...] invalid range in character class"
 * (T207540) Include IP address in "Login for $1 succeeded" log entry.
+* (T207541) Pass email address to mail().
 
 == MediaWiki 1.31.1 ==
 
index bdd4f44..fcb6173 100644 (file)
@@ -431,7 +431,7 @@ class UserMailer {
                        try {
                                foreach ( $to as $recip ) {
                                        $sent = mail(
-                                               $recip,
+                                               $recip->toString(),
                                                self::quotedPrintable( $subject ),
                                                $body,
                                                $headers,