diff options
author | Derick Rethans <derick@php.net> | 2002-08-26 09:44:31 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-08-26 09:44:31 +0000 |
commit | 7edb660af95aef51d9df453c979a7d79ae784d75 (patch) | |
tree | a3f0c94bc87a6756b86ad5ec406d3d37203a028d | |
parent | 60a866d9772f693cb16e7345f4faa56e4ae13c76 (diff) | |
download | php-git-7edb660af95aef51d9df453c979a7d79ae784d75.tar.gz |
@- 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().
-rw-r--r-- | ext/standard/mail.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 6e3fd4a277..ac1c807678 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -111,8 +111,9 @@ PHP_FUNCTION(mail) } } - 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; |