PHP 4.0 Bug #2181 Updated: imap_fetchstructure() don't set body->type when message is TYPETEXT

From: Date: Sat, 10 Feb 2001 18:41:48 +0000
Subject: PHP 4.0 Bug #2181 Updated: imap_fetchstructure() don't set body->type when message is TYPETEXT
Groups: php.dev 
Request: Send a blank email to php-dev+get-46195@lists.php.net to get a copy of this message
ID: 2181 Updated by: jimw Reported By: tsukada@fminn.nagano.nagano.jp Status: Open Old-Bug Type: Feature/Change Request Bug Type: IMAP related Assigned To: Comments: refiled against 4.0 imap. no idea if it is still an issue. Previous Comments: --------------------------------------------------------------------------- [1999-11-15 10:11:06] joey@cvs.php.net Marc- Hope you don't mind if I assign this? --------------------------------------------------------------------------- [1999-08-28 11:42:39] tsukada@fminn.nagano.nagano.jp please check below patch --- imap.c.orig Sat Aug 28 23:43:06 1999 +++ imap.c Sun Aug 29 00:08:24 1999 @@ -2087,8 +2087,8 @@ PARAMETER *par, *dpar; PART *part; - if(body->type) add_property_long( arg, "type", body->type ); - if(body->encoding) add_property_long( arg, "encoding", body->encoding ); + if(body->type < TYPEMAX) add_property_long( arg, "type", body->type ); + if(body->encoding < ENCMAX) add_property_long( arg, "encoding", body->encoding ); if ( body->subtype ){ add_property_long( arg, "ifsubtype", 1 ); @@ -2711,8 +2711,8 @@ } body=mail_body(imap_le_struct->imap_stream, msg->value.lval, section->value.str.val); - if(body->type) add_property_long( return_value, "type", body->type ); - if(body->encoding) add_property_long( return_value, "encoding", body->encoding ); + if(body->type < TYPEMAX) add_property_long( return_value, "type", body->type ); + if(body->encoding < ENCMAX) add_property_long( return_value, "encoding", body->encoding ); if ( body->subtype ){ add_property_long( return_value, "ifsubtype", 1 ); --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=2181&edit=2

« previous php.dev (#46195) next »