From: kink Date: Fri, 8 Jun 2007 18:28:30 +0000 (+0000) Subject: Always treat Content-Type case-insensitively (#1732092). X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6f6ed9a7dad95211b4dae43cfc610c7004fd3050;p=squirrelmail.git Always treat Content-Type case-insensitively (#1732092). Thanks Rich Pinkall Pollei! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12444 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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);