Explorar o código

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

Thijs Kinkhorst %!s(int64=18) %!d(string=hai) anos
pai
achega
fc3206645c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);