escapeshellarg the sender
git-svn-id: https://develop.svn.wordpress.org/trunk@5682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
007ea284be
commit
edeae9cc8e
|
@ -390,7 +390,7 @@ class PHPMailer
|
|||
*/
|
||||
function SendmailSend($header, $body) {
|
||||
if ($this->Sender != "")
|
||||
$sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);
|
||||
$sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, escapeshellarg($this->Sender));
|
||||
else
|
||||
$sendmail = sprintf("%s -oi -t", $this->Sendmail);
|
||||
|
||||
|
|
Loading…
Reference in New Issue