MDL-30575 more mail header cleanup

This commit is contained in:
Petr Skoda
2011-12-13 10:23:56 +08:00
committed by Aparup Banerjee
parent 1daa8c0821
commit 1a52d9e2cc
+2 -2
View File
@@ -1080,9 +1080,9 @@ class PHPMailer {
$result .= $this->HeaderLine('Date', self::RFCDate());
if($this->Sender == '') {
$result .= $this->HeaderLine('Return-Path', trim($this->From));
$result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->From))); // Moodle modification
} else {
$result .= $this->HeaderLine('Return-Path', trim($this->Sender));
$result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->Sender))); // Moodle modification
}
// To be created automatically by mail()