Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30575 more mail header cleanup

  • Loading branch information...
commit 694bf2fa3b350c1fc6aa19eeecd6c0e5d628febb 1 parent 6ec9004
Petr Škoda authored December 12, 2011 nebgor committed December 13, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/phpmailer/class.phpmailer.php
4  lib/phpmailer/class.phpmailer.php
@@ -1080,9 +1080,9 @@ public function CreateHeader() {
1080 1080
 
1081 1081
     $result .= $this->HeaderLine('Date', self::RFCDate());
1082 1082
     if($this->Sender == '') {
1083  
-      $result .= $this->HeaderLine('Return-Path', trim($this->From));
  1083
+      $result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->From))); // Moodle modification
1084 1084
     } else {
1085  
-      $result .= $this->HeaderLine('Return-Path', trim($this->Sender));
  1085
+      $result .= $this->HeaderLine('Return-Path', trim($this->SecureHeader($this->Sender))); // Moodle modification
1086 1086
     }
1087 1087
 
1088 1088
     // To be created automatically by mail()

0 notes on commit 694bf2f

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