Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30575 more mail header cleanup

  • Loading branch information...
commit d378d75c36f868fcd224a9bebc1bc2ac1426d8f0 1 parent 3b85cc3
@skodak skodak authored nebgor committed
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()
Please sign in to comment.
Something went wrong with that request. Please try again.