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

Add escaping to sendmail reverse path #494

Merged
merged 1 commit into from Jun 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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