* This file contains functions needed to handle content type headers
* (rfc2045) in mime messages.
*
- * @copyright © 2003-2005 The SquirrelMail Project Team
+ * @copyright © 2003-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @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);
$this->properties = array();
}
}
-
-?>
\ No newline at end of file