escapeshellarg the sender
git-svn-id: http://svn.automattic.com/wordpress/trunk@5682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81c90fcd76
commit
66e6a55c7e
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue