Skip to content

Commit e77e90d

Browse files
committed
Ensure strings passed to imap_mail() don't contain null bytes
1 parent 0295f2e commit e77e90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/imap/php_imap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3577,7 +3577,7 @@ PHP_FUNCTION(imap_mail)
35773577
zend_string *to=NULL, *message=NULL, *headers=NULL, *subject=NULL, *cc=NULL, *bcc=NULL, *rpath=NULL;
35783578
int argc = ZEND_NUM_ARGS();
35793579

3580-
if (zend_parse_parameters(argc, "SSS|SSSS", &to, &subject, &message,
3580+
if (zend_parse_parameters(argc, "PPP|PPPP", &to, &subject, &message,
35813581
&headers, &cc, &bcc, &rpath) == FAILURE) {
35823582
RETURN_THROWS();
35833583
}

0 commit comments

Comments
 (0)