cvs: php4 /ext/standard mail.c
| From: | Derick Rethans | Date: | Mon, 26 Aug 2002 09:44:31 +0000 |
| Subject: | cvs: php4 /ext/standard mail.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13676@lists.php.net to get a copy of this message | ||
derick Mon Aug 26 05:44:31 2002 EDT
Modified files:
/php4/ext/standard mail.c
Log:
@- Use escape_shell_cmd() to allow multiple extra parameters to the
@ invocation of the mailer as used in the fifth parameter to mail(). (Derick)
- Use escape_shell_cmd() to allow multiple extra parameters to the invocation
of the mailer as used in the fifth parameter to mail().
Index: php4/ext/standard/mail.c
diff -u php4/ext/standard/mail.c:1.59 php4/ext/standard/mail.c:1.60
--- php4/ext/standard/mail.c:1.59 Sat Aug 24 07:37:50 2002
+++ php4/ext/standard/mail.c Mon Aug 26 05:44:31 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mail.c,v 1.59 2002/08/24 11:37:50 sesser Exp $ */
+/* $Id: mail.c,v 1.60 2002/08/26 09:44:31 derick Exp $ */
#include <stdlib.h>
#include <ctype.h>
@@ -111,8 +111,9 @@
}
}
- if(extra_cmd)
- extra_cmd = php_escape_shell_arg(extra_cmd);
+ if (extra_cmd) {
+ extra_cmd = php_escape_shell_cmd(extra_cmd);
+ }
if (php_mail(to, subject, message, headers, extra_cmd TSRMLS_CC)) {
RETVAL_TRUE;