summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-phpmailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/class-phpmailer.php')
-rw-r--r--wp-includes/class-phpmailer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/class-phpmailer.php b/wp-includes/class-phpmailer.php
index ad439fe..4c93bae 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);