瀏覽代碼

Always treat Content-Type case-insensitively (#1732092).
Thanks Rich Pinkall Pollei!

Thijs Kinkhorst 18 年之前
父節點
當前提交
fc3206645c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      class/mime/ContentType.class.php

+ 1 - 0
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);