Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
Add escaping to sendmail reverse path
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Jun 12, 2014
1 parent 0beeac8 commit efc4306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/Swift/Transport/SendmailTransport.php
Expand Up @@ -114,7 +114,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
}

if (false === strpos($command, ' -f')) {
$command .= ' -f' . $this->_getReversePath($message);
$command .= ' -f' . escapeshellarg($this->_getReversePath($message));
}

$buffer->initialize(array_merge($this->_params, array('command' => $command)));
Expand Down

0 comments on commit efc4306

Please sign in to comment.