We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e735de6 + 5a8958f commit c3365bbCopy full SHA for c3365bb
ext/imap/php_imap.c
@@ -3264,7 +3264,7 @@ PHP_FUNCTION(imap_mail_compose)
3264
convert_to_string_ex(pvalue);
3265
bod->md5 = cpystr(Z_STRVAL_P(pvalue));
3266
}
3267
- } else if (Z_TYPE_P(data) == IS_ARRAY) {
+ } else if (Z_TYPE_P(data) == IS_ARRAY && topbod->type == TYPEMULTIPART) {
3268
short type = -1;
3269
SEPARATE_ARRAY(data);
3270
if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) {
0 commit comments