소스 검색

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);