Changeset 753 for tags/release_1.0.1
- Timestamp:
- 01/21/08 15:38:23 (11 months ago)
- Files:
-
- tags/release_1.0.1/lib/jelix/utils/jMailer.class.php (modified) (1 diff)
- tags/release_1.0.1/lib/jelix/utils/jMailer.class.php (modified) (1 diff)
- tags/release_1.0.1/lib/jelix/utils/jMailer.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tags/release_1.0.1/lib/jelix/utils/jMailer.class.php
r713 r753 405 405 protected function SendmailSend($header, $body) { 406 406 if ($this->Sender != "") 407 $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);407 $sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); 408 408 else 409 $sendmail = sprintf("%s -oi -t", $this->Sendmail);409 $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 410 410 411 411 if(!@$mail = popen($sendmail, "w")) tags/release_1.0.1/lib/jelix/utils/jMailer.class.php
r713 r753 405 405 protected function SendmailSend($header, $body) { 406 406 if ($this->Sender != "") 407 $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);407 $sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); 408 408 else 409 $sendmail = sprintf("%s -oi -t", $this->Sendmail);409 $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 410 410 411 411 if(!@$mail = popen($sendmail, "w")) tags/release_1.0.1/lib/jelix/utils/jMailer.class.php
r713 r753 405 405 protected function SendmailSend($header, $body) { 406 406 if ($this->Sender != "") 407 $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);407 $sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender)); 408 408 else 409 $sendmail = sprintf("%s -oi -t", $this->Sendmail);409 $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 410 410 411 411 if(!@$mail = popen($sendmail, "w"))
