From 66e6a55c7ec1dbdf715fc651a5b2b3440df3dce0 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 Jun 2007 23:19:33 +0000 Subject: [PATCH] escapeshellarg the sender git-svn-id: http://svn.automattic.com/wordpress/trunk@5682 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-phpmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-phpmailer.php b/wp-includes/class-phpmailer.php index ad439fe80..4c93bae3b 100644 --- a/wp-includes/class-phpmailer.php +++ b/wp-includes/class-phpmailer.php @@ -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);