projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix session autostart code - session_name() return value does not indicate session...
[squirrelmail.git]
/
class
/
mime
/
ContentType.class.php
diff --git
a/class/mime/ContentType.class.php
b/class/mime/ContentType.class.php
index ce1f6ec3b5edcef982995507045cdd2090228db7..2c5ff8f0a50fb80e58d5557c8bcf5ac9e979a5d8 100644
(file)
--- a/
class/mime/ContentType.class.php
+++ b/
class/mime/ContentType.class.php
@@
-6,7
+6,7
@@
* This file contains functions needed to handle content type headers
* (rfc2045) in mime messages.
*
* This file contains functions needed to handle content type headers
* (rfc2045) in mime messages.
*
- * @copyright © 2003-200
5
The SquirrelMail Project Team
+ * @copyright © 2003-200
7
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @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) {
* @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);
$pos = strpos($type, '/');
if ($pos > 0) {
$this->type0 = substr($type, 0, $pos);
@@
-56,5
+57,3
@@
class ContentType {
$this->properties = array();
}
}
$this->properties = array();
}
}
-
-?>
\ No newline at end of file