Revert revision 14314; static functions are a PHP 5+ feature
[squirrelmail.git] / class / mime / ContentType.class.php
index 915485d78d96889f4623b21265deae2d10e8bd9f..1e9282b24caa9cf67f40df87852cf33e334b3a29 100644 (file)
@@ -6,7 +6,7 @@
  * This file contains functions needed to handle content type headers 
  * (rfc2045) in mime messages.
  *
- * @copyright © 2003-2006 The SquirrelMail Project Team
+ * @copyright 2003-2012 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -46,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);
@@ -56,5 +57,3 @@ class ContentType {
         $this->properties = array();
     }
 }
-
-?>
\ No newline at end of file