[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] CVS: squirrelmail/functions imap_messages.php,1.167,1.168
From: Marc Groot Koerkamp <stekkel () users ! sourceforge ! net>
Date: 2004-05-24 18:02:02
Message-ID: E1BSJly-00038C-0L () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
Update of /cvsroot/squirrelmail/squirrelmail/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11870/functions
Modified Files:
imap_messages.php
Log Message:
Set the content-type correct so we can check on multipart/mixed in
mailbox_display (printMessage).
Index: imap_messages.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/functions/imap_messages.php,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -w -r1.167 -r1.168
--- imap_messages.php 23 May 2004 15:38:40 -0000 1.167
+++ imap_messages.php 24 May 2004 18:01:59 -0000 1.168
@@ -683,9 +683,12 @@
$type = substr($type, 0, $pos);
}
$type = explode("/", $type);
- if(!is_array($type)) {
+ if(!is_array($type) || count($type) < 2) {
$msg['TYPE0'] = 'text';
$msg['TYPE1'] = 'plain';
+ } else {
+ $msg['TYPE0'] = strtolower($type[0]);
+ $msg['TYPE1'] = strtolower($type[1]);
}
break;
case 'received':
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
squirrelmail-cvs mailing list
List Address: squirrelmail-cvs@lists.sourceforge.net
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
http://squirrelmail.org/cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic