Skip to content
Browse files

MDL-30575 more mail header cleanup

  • Loading branch information...
1 parent 3b85cc3 commit d378d75c36f868fcd224a9bebc1bc2ac1426d8f0 @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 d378d75

Please sign in to comment.
Something went wrong with that request. Please try again.