Revision: 12443
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12443&view=rev
Author: kink
Date: 2007-06-08 11:26:09 -0700 (Fri, 08 Jun 2007)
Log Message:
-----------
Always treat Content-Type case-insensitively (#1732092).
Thanks Rich Pinkall Pollei!
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/ChangeLog
branches/SM-1_4-STABLE/squirrelmail/class/mime/ContentType.class.php
branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php
Modified: branches/SM-1_4-STABLE/squirrelmail/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-06-08 16:40:37 UTC
(rev 12442)
+++ branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-06-08 18:26:09 UTC
(rev 12443)
@@ -12,6 +12,7 @@
- Let POP3 class properly cope with lines starting with a '.'.
- Some HTML validation cleanups.
- Invalid year in sent_subfolders plugin (#1607380).
+ - Always treat Content-Type case-insensitively (#1732092).
Version 1.4.10a - 10 May 2007
-----------------------------
Modified: branches/SM-1_4-STABLE/squirrelmail/class/mime/ContentType.class.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/class/mime/ContentType.class.php
2007-06-08 16:40:37 UTC (rev 12442)
+++ branches/SM-1_4-STABLE/squirrelmail/class/mime/ContentType.class.php
2007-06-08 18:26:09 UTC (rev 12443)
@@ -46,6 +46,7 @@
* @param string $type content type string without auxiliary information
*/
function ContentType($type) {
+ $type = strtolower($type);
$pos = strpos($type, '/');
if ($pos > 0) {
$this->type0 = substr($type, 0, $pos);
@@ -57,4 +58,3 @@
}
}
-?>
\ No newline at end of file
Modified: branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php
2007-06-08 16:40:37 UTC (rev 12442)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/imap_messages.php
2007-06-08 18:26:09 UTC (rev 12443)
@@ -665,7 +665,7 @@
}
break;
case 'content-type':
- $type = $value;
+ $type = strtolower($value);
if ($pos = strpos($type, ";")) {
$type = substr($type, 0, $pos);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
|