Changeset 753 for tags/release_1.0.1

Show
Ignore:
Timestamp:
01/21/08 15:38:23 (11 months ago)
Author:
laurentj
Message:

fixed bug #437 also in jelix 1.0.1 since nobody has already downloaded it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/release_1.0.1/lib/jelix/utils/jMailer.class.php

    r713 r753  
    405405    protected function SendmailSend($header, $body) { 
    406406        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)); 
    408408        else 
    409             $sendmail = sprintf("%s -oi -t", $this->Sendmail); 
     409            $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 
    410410 
    411411        if(!@$mail = popen($sendmail, "w")) 
  • tags/release_1.0.1/lib/jelix/utils/jMailer.class.php

    r713 r753  
    405405    protected function SendmailSend($header, $body) { 
    406406        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)); 
    408408        else 
    409             $sendmail = sprintf("%s -oi -t", $this->Sendmail); 
     409            $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 
    410410 
    411411        if(!@$mail = popen($sendmail, "w")) 
  • tags/release_1.0.1/lib/jelix/utils/jMailer.class.php

    r713 r753  
    405405    protected function SendmailSend($header, $body) { 
    406406        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)); 
    408408        else 
    409             $sendmail = sprintf("%s -oi -t", $this->Sendmail); 
     409            $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail)); 
    410410 
    411411        if(!@$mail = popen($sendmail, "w")) 
Download in other formats: Unified Diff Zip Archive