Przeglądaj źródła

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

Thijs Kinkhorst 18 lat temu
rodzic
commit
fc3206645c
1 zmienionych plików z 1 dodań i 0 usunięć
  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);