From fd6f77d569962033261a6d6e6bb799b1a4cd09e2 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 28 Mar 2008 16:43:49 +0000 Subject: [PATCH] Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (patch by Thomas Jarosch) --- NEWS | 2 ++ ext/imap/php_imap.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 64d2b15991..e2fe01d542 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Apr 2008, PHP 5.2.6 +- Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) + (Thomas Jarosch) 27 Mar 2008, PHP 5.2.6RC3 - Properly address incomplete multibyte chars inside escapeshellcmd() (Ilia, diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index ffad65cc6a..3d6f3c6c8f 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1051,6 +1051,7 @@ PHP_FUNCTION(imap_setacl) ZEND_FETCH_RESOURCE(imap_le_struct, pils *, streamind, -1, "imap", le_imap); convert_to_string_ex(mailbox); + convert_to_string_ex(id); convert_to_string_ex(rights); RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream, Z_STRVAL_PP(mailbox), Z_STRVAL_PP(id), Z_STRVAL_PP(rights))); -- 2.50.1