Always treat Content-Type case-insensitively (#1732092).
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 8 Jun 2007 18:28:30 +0000 (18:28 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 8 Jun 2007 18:28:30 +0000 (18:28 +0000)
Thanks Rich Pinkall Pollei!

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12444 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/ContentType.class.php

index ac0e5754dfe8727638e05f4fc761f66e3fc685c5..2c5ff8f0a50fb80e58d5557c8bcf5ac9e979a5d8 100644 (file)
@@ -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);