iliaa Wed Sep 21 09:16:04 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src NEWS
/php-src/ext/mbstring mbstring.c
Log:
MFH: Fixed bug #34565 (mb_send_mail does not fetch
mail.force_extra_parameters)
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2027.2.70&r2=1.2027.2.71&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.70 php-src/NEWS:1.2027.2.71
--- php-src/NEWS:1.2027.2.70 Tue Sep 20 16:59:00 2005
+++ php-src/NEWS Wed Sep 21 09:16:01 2005
@@ -33,6 +33,8 @@
- Fixed "make test" to work for phpized extensions. (Hartmut, Jani)
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
(Andrey)
+- Fixed bug #34565 (mb_send_mail does not fetch mail.force_extra_parameters).
+ (Marco, Ilia)
- Fixed bug #34518 (Unset doesn't separate container in CV). (Dmitry)
- Fixed bug #34505 (Possible memory corruption when unmangling properties
with empty names). (Tony)
http://cvs.php.net/diff.php/php-src/ext/mbstring/mbstring.c?r1=1.224&r2=1.224.2.1&ty=u
Index: php-src/ext/mbstring/mbstring.c
diff -u php-src/ext/mbstring/mbstring.c:1.224
php-src/ext/mbstring/mbstring.c:1.224.2.1
--- php-src/ext/mbstring/mbstring.c:1.224 Wed Aug 3 10:07:24 2005
+++ php-src/ext/mbstring/mbstring.c Wed Sep 21 09:16:03 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.224 2005/08/03 14:07:24 sniper Exp $ */
+/* $Id: mbstring.c,v 1.224.2.1 2005/09/21 13:16:03 iliaa Exp $ */
/*
* PHP 4 Multibyte String module "mbstring"
@@ -3007,6 +3007,7 @@
int subject_len;
char *extra_cmd=NULL;
int extra_cmd_len;
+ char *force_extra_parameters = INI_STR("mail.force_extra_parameters");
struct {
int cnt_type:1;
int cnt_trans_enc:1;
@@ -3208,12 +3209,21 @@
mbfl_memory_device_output('\0', &device);
headers = (char *)device.buffer;
+ if (force_extra_parameters) {
+ extra_cmd = estrdup(force_extra_parameters);
+ } else if (extra_cmd) {
+ extra_cmd = php_escape_shell_cmd(extra_cmd);
+ }
+
if (!err && php_mail(to, subject, message, headers, extra_cmd
TSRMLS_CC)) {
RETVAL_TRUE;
} else {
RETVAL_FALSE;
}
+ if (extra_cmd) {
+ efree(extra_cmd);
+ }
if (subject_buf) {
efree((void *)subject_buf);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php