diff options
| author | Zoe Slattery <zoe@php.net> | 2008-12-05 11:59:01 +0000 |
|---|---|---|
| committer | Zoe Slattery <zoe@php.net> | 2008-12-05 11:59:01 +0000 |
| commit | 7c375c48794c32cdded66d72c211b45b3717a39a (patch) | |
| tree | 7e7af6da177211dcad2650514d7397ddf7c0cb5f /ext/imap/php_imap.c | |
| parent | 51e01521702314b4b827a3783b17465c9afeac8f (diff) | |
| download | php-git-7c375c48794c32cdded66d72c211b45b3717a39a.tar.gz | |
bug #46731 fix
Diffstat (limited to 'ext/imap/php_imap.c')
| -rw-r--r-- | ext/imap/php_imap.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
