From 7c375c48794c32cdded66d72c211b45b3717a39a Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Fri, 5 Dec 2008 11:59:01 +0000 Subject: bug #46731 fix --- ext/imap/php_imap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/imap/php_imap.c') diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 0eda5cb330..568ff0bc34 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2895,6 +2895,10 @@ PHP_FUNCTION(imap_fetch_overview) if(myargc == 3) { convert_to_long_ex(pflags); flags = Z_LVAL_PP(pflags); + if (flags && ((flags & ~FT_UID) != 0)) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid value for the options parameter"); + RETURN_FALSE; + } } array_init(return_value); -- cgit v1.2.1