Fix for deleting message from search expiring cache.
[squirrelmail.git] / class / mime / ContentType.class.php
index d44c79f9ccf4fd8baa11a033fea1dbd463087d9a..01e8bac9041bfcb1900d5a14eaab04ced7ea5122 100644 (file)
@@ -3,12 +3,11 @@
 /**
  * ContentType.class.php
  *
- * Copyright (c) 2003-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * This file contains functions needed to handle content type headers 
  * (rfc2045) in mime messages.
  *
+ * @copyright © 2003-2009 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage mime
@@ -47,6 +46,7 @@ class ContentType {
      * @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,5 +57,3 @@ class ContentType {
         $this->properties = array();
     }
 }
-
-?>
\ No newline at end of file