mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:25:55 +00:00
fix vulnerability in PHPMailer
This commit is contained in:
@@ -390,9 +390,11 @@ class PHPMailer
|
|||||||
*/
|
*/
|
||||||
function SendmailSend($header, $body) {
|
function SendmailSend($header, $body) {
|
||||||
if ($this->Sender != "")
|
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
|
else
|
||||||
$sendmail = sprintf("%s -oi -t", $this->Sendmail);
|
$sendmail = sprintf("%s -oi -t",
|
||||||
|
escapeshellcmd($this->Sendmail));
|
||||||
|
|
||||||
if(!@$mail = popen($sendmail, "w"))
|
if(!@$mail = popen($sendmail, "w"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user