Make WordPress Core

Changeset 5681


Ignore:
Timestamp:
06/11/2007 11:18:24 PM (17 years ago)
Author:
ryan
Message:

escapeshellarg the sender

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/class-phpmailer.php

    r5391 r5681  
    391391    function SendmailSend($header, $body) {
    392392        if ($this->Sender != "")
    393             $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);
     393            $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, escapeshellarg($this->Sender));
    394394        else
    395395            $sendmail = sprintf("%s -oi -t", $this->Sendmail);
Note: See TracChangeset for help on using the changeset viewer.