Permalink
Browse files

MDL-30575 more mail header cleanup

  • Loading branch information...
1 parent 1daa8c0 commit 1a52d9e2ccde0d22e360d7499f32ce083bcc60e2 @skodak skodak committed with nebgor Dec 12, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 1a52d9e

Please sign in to comment.