*/\r
function SendmailSend($header, $body) {\r
if ($this->Sender != "")\r
- $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);\r
+ $sendmail = sprintf("%s -oi -f %s -t", \r
+ escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));\r
else\r
- $sendmail = sprintf("%s -oi -t", $this->Sendmail);\r
+ $sendmail = sprintf("%s -oi -t", \r
+ escapeshellcmd($this->Sendmail));\r
\r
if(!@$mail = popen($sendmail, "w"))\r
{\r
}\r
}\r
\r
-?>
\ No newline at end of file
+?>\r