escapeshellarg the sender

git-svn-id: https://develop.svn.wordpress.org/trunk@5682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-06-11 23:19:33 +00:00
parent 007ea284be
commit edeae9cc8e
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class PHPMailer
*/ */
function SendmailSend($header, $body) { function SendmailSend($header, $body) {
if ($this->Sender != "") 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 else
$sendmail = sprintf("%s -oi -t", $this->Sendmail); $sendmail = sprintf("%s -oi -t", $this->Sendmail);