From: Antoine Musso Date: Thu, 20 May 2004 03:04:14 +0000 (+0000) Subject: fix bug 956984 : duplicate to: header. One fix is not tested but I added comments X-Git-Tag: 1.3.0beta1~23 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=01d96c5508661764fb5caf83bfc2a52479de0be0;p=lhc%2Fweb%2Fwiklou.git fix bug 956984 : duplicate to: header. One fix is not tested but I added comments --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 45e071c488..6704a82ccb 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -17,7 +17,9 @@ function userMailer( $to, $from, $subject, $body ) $timestamp = time(); $headers["From"] = $from; - $headers["To"] = $qto; +/* removing to: field as it should be set by the send() function below + UNTESTED - Hashar */ +// $headers["To"] = $qto; $headers["Subject"] = $subject; $headers["MIME-Version"] = "1.0"; $headers["Content-type"] = "text/plain; charset={$wgOutputEncoding}"; @@ -47,7 +49,6 @@ function userMailer( $to, $from, $subject, $body ) "Content-transfer-encoding: 8bit\r\n" . "From: {$from}\r\n" . "Reply-To: {$from}\r\n" . - "To: {$qto}\r\n" . "X-Mailer: MediaWiki interuser e-mailer"; $wgErrorString = "";