Permalink
Browse files

MDL-30575 more mail header cleanup

  • Loading branch information...
1 parent 6ec9004 commit 694bf2fa3b350c1fc6aa19eeecd6c0e5d628febb @skodak skodak committed with nebgor Dec 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/phpmailer/class.phpmailer.php
View
4 lib/phpmailer/class.phpmailer.php
@@ -1080,9 +1080,9 @@ public function CreateHeader() {
$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()

0 comments on commit 694bf2f

Please sign in to comment.