X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fmime%2FContentType.class.php;h=2c5ff8f0a50fb80e58d5557c8bcf5ac9e979a5d8;hp=ac0e5754dfe8727638e05f4fc761f66e3fc685c5;hb=6f6ed9a7dad95211b4dae43cfc610c7004fd3050;hpb=ca8a7efc688b84f246e326836dc79f7f6d31a8c1 diff --git a/class/mime/ContentType.class.php b/class/mime/ContentType.class.php index ac0e5754..2c5ff8f0 100644 --- a/class/mime/ContentType.class.php +++ b/class/mime/ContentType.class.php @@ -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);