#15509 [Com]: fifth argument in mail only supports one parameter and no spaces

From: Date: Sat, 17 Aug 2002 21:08:57 +0000
Subject: #15509 [Com]: fifth argument in mail only supports one parameter and no spaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17151@lists.php.net to get a copy of this message
ID: 15509 Comment by: php@paul-roberts.com Reported By: andreia.mahler@ipayx.com Status: Closed Bug Type: Mail related Operating System: Linux RedHat 7.1 PHP Version: 4.1.1 New Comment: what are the security issues involved in passing multiple parameters. Previous Comments: ------------------------------------------------------------------------ [2002-06-10 11:25:06] mfischer@php.net The behaviour was changed for security reason, only one parameter can be passed, even when spaces are in the parameter. ------------------------------------------------------------------------ [2002-06-10 10:30:34] andreia.mahler@ipayx.com I don't have safe-mode enabled - in php.ini ; ; Safe Mode ; safe_mode = Off Thanks! Andreia ------------------------------------------------------------------------ [2002-06-02 18:26:17] mfischer@php.net Do you have safe_mode enabled? ------------------------------------------------------------------------ [2002-02-11 13:32:14] andreia.mahler@ipayx.com The behavior of the fifth parameter of the mail function has changed from version 4.0.6 to version 4.1.1 - only one sendmail parameter seems to be allowed and no spaces can follow the flag for the parameter. Below are some lines of code showing displaying the problem! in version 4.0.6 the following line worked: mail("andreia.mahler@ipayx.com", "test subject", "test body","Message-Id: test-header", "-N failure,success, delay -f receipts@ipayx.com"); in version 4.1.1 I could only get: mail("andreia.mahler@ipayx.com", "test subject", "test body","Message-Id: test-header", "-Nfailure,success, delay"); or mail("andreia.mahler@ipayx.com", "test subject", "test body","Message-Id: test-header", "-freceipts@ipayx.com"); Note that the spaces were not allowed after the flags (-N or -F) and only one argument alone worked. Is this is 4.1.1 bug or will we be restricted to only one flag in the fifth field as the online manual says? Thanks! Andreia ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15509&edit=1

« previous php.bugs (#17151) next »