svn: /pear/packages/Mail/trunk/Mail/ sendmail.php

From: Date: Mon, 08 Feb 2010 08:03:46 +0000
Subject: svn: /pear/packages/Mail/trunk/Mail/ sendmail.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-58607@lists.php.net to get a copy of this message
clockwerx Mon, 08 Feb 2010 08:03:46 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294744 Log: Bug #16200 - Security fix, part 2 Bug: http://pear.php.net/bugs/16200 (unknown) Changed paths: U pear/packages/Mail/trunk/Mail/sendmail.php Modified: pear/packages/Mail/trunk/Mail/sendmail.php =================================================================== --- pear/packages/Mail/trunk/Mail/sendmail.php 2010-02-08 06:43:20 UTC (rev 294743) +++ pear/packages/Mail/trunk/Mail/sendmail.php 2010-02-08 08:03:46 UTC (rev 294744) @@ -117,7 +117,7 @@ if (is_a($recipients, 'PEAR_Error')) { return $recipients; } - $recipients = escapeShellCmd(implode(' ', $recipients)); + $recipients = implode(' ', array_map('escapeshellarg', $recipients)); $headerElements = $this->prepareHeaders($headers); if (is_a($headerElements, 'PEAR_Error')) { @@ -142,7 +142,7 @@ } $from = escapeshellarg($from); // Security bug #16200 - + $mail = @popen($this->sendmail_path . (!empty($this->sendmail_args) ? ' ' . $this->sendmail_args : '') . " -f$from -- $recipients", 'w'); if (!$mail) { return PEAR::raiseError('Failed to open sendmail [' . $this->sendmail_path . '] for execution.');

« previous php.pear.cvs (#58607) next »