Thomas Bruederli
2013-10-22 1ece73dc4ea724f681ee49f1a1c2a9f241a1fa51
Fix mime.types parsing (#1489391)
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_mime.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_mime.php
@@ -810,7 +810,7 @@
        }
        $mime_types = $mime_extensions = array();
        $regex = "/([\w\+\-\.\/]+)\t+([\w\s]+)/i";
        $regex = "/([\w\+\-\.\/]+)\s+([\w\s]+)/i";
        foreach((array)$lines as $line) {
             // skip comments or mime types w/o any extensions
            if ($line[0] == '#' || !preg_match($regex, $line, $matches))