mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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) {
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user