Skip to content

Commit

Permalink
Add dot character . to legal mime subtype regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
romainneutron committed Feb 7, 2013
1 parent eb3eaf6 commit a12744e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -61,7 +61,7 @@ public function guess($path)

$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;
}
Expand Down

0 comments on commit a12744e

Please sign in to comment.