--- attach.inc.php.orig 2004-08-15 09:19:35.000000000 +0900 +++ attach.inc.php 2004-11-05 10:27:23.000000000 +0900 @@ -319,7 +319,7 @@ $_type = trim($row[0]); $exts = preg_split('/\s+|,/', trim($row[1]), -1, PREG_SPLIT_NO_EMPTY); foreach ($exts as $ext) { - if (preg_match("/\.$ext$/i", $filename)) return $_type; + if (preg_match("/\.$ext\(.[0-9]?)$/i", $filename)) return $_type; } }