Add dot character . to legal mime subtype regular expression

This commit is contained in:
Romain Neutron 2013-02-07 17:24:12 +01:00
parent eb3eaf6f5b
commit a12744e30e

View File

@ -61,7 +61,7 @@ class FileBinaryMimeTypeGuesser implements MimeTypeGuesserInterface
$type = trim(ob_get_clean());
if (!preg_match('#^([a-z0-9\-]+/[a-z0-9\-]+)#i', $type, $match)) {
if (!preg_match('#^([a-z0-9\-]+/[a-z0-9\-\.]+)#i', $type, $match)) {
// it's not a type, but an error message
return null;
}