1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-23 11:46:37 +02:00

fix vulnerability in PHPMailer

This commit is contained in:
Andrew Dolgov 2007-11-23 03:48:07 +01:00
parent 11063ec65c
commit 090ac2fea0

View File

@ -390,9 +390,11 @@ 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",
escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
else
$sendmail = sprintf("%s -oi -t", $this->Sendmail);
$sendmail = sprintf("%s -oi -t",
escapeshellcmd($this->Sendmail));
if(!@$mail = popen($sendmail, "w"))
{
@ -1496,4 +1498,4 @@ class PHPMailer
}
}
?>
?>