From 6f6ed9a7dad95211b4dae43cfc610c7004fd3050 Mon Sep 17 00:00:00 2001 From: kink Date: Fri, 8 Jun 2007 18:28:30 +0000 Subject: [PATCH] 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 --- class/mime/ContentType.class.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1