cvs: /php3/functions imap.c
| From: | Frank M. Kromann | Date: | Sat, 15 Jan 2000 21:39:16 +0000 |
| Subject: | cvs: /php3/functions imap.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14658@lists.php.net to get a copy of this message | ||
fmk Sat Jan 15 13:39:16 2000 EDT
Modified files:
/php3/functions imap.c
Log:
Re-adding some checks before using variables
Index: php3/functions/imap.c
diff -u php3/functions/imap.c:1.76 php3/functions/imap.c:1.77
--- php3/functions/imap.c:1.76 Wed Jan 12 01:57:07 2000
+++ php3/functions/imap.c Sat Jan 15 13:39:15 2000
@@ -33,7 +33,7 @@
| Andrew Skalski <askalski@chek.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: imap.c,v 1.76 2000/01/12 09:57:07 eschmid Exp $ */
+/* $Id: imap.c,v 1.77 2000/01/15 21:39:15 fmk Exp $ */
#define IMAP41
@@ -2140,8 +2140,8 @@
PARAMETER *par, *dpar;
PART *part;
- add_property_long( arg, "type", body->type );
- add_property_long( arg, "encoding", body->encoding );
+ if(body->type) add_property_long( arg, "type", body->type );
+ if(body->encoding) add_property_long( arg, "encoding", body->encoding );
if ( body->subtype ){
add_property_long( arg, "ifsubtype", 1 );