From edeae9cc8e9d33481cbb426508599035591b852f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 11 Jun 2007 23:19:33 +0000 Subject: [PATCH] escapeshellarg the sender git-svn-id: https://develop.svn.wordpress.org/trunk@5682 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 ad439fe808..4c93bae3b9 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);