mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
extra vetting on input - thanks nlstart
This commit is contained in:
@@ -390,10 +390,9 @@ 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"))
|
||||||
{
|
{
|
||||||
$this->SetError($this->Lang("execute") . $this->Sendmail);
|
$this->SetError($this->Lang("execute") . $this->Sendmail);
|
||||||
|
Reference in New Issue
Block a user