5
to fix this issue:
open class/mail/phpmailer/class.phpmailer.php
find on line 391 (xoops 2.0.16)
if ($this->Sender != "")
$sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);
else
$sendmail = sprintf("%s -oi -t", $this->Sendmail);
REPLACE with:
if ($this->Sender != "")
{
$sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
} else {
$sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail));
}
voila! now you can use sendmail again safeley :)