*
* This file provides the handling of often-used attachment types.
*
- * @copyright 1999-2009 The SquirrelMail Project Team
+ * @copyright 1999-2010 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
$Ext = '';
if (is_array($Regs) && isset($Regs[1])) {
- $Ext = $Regs[1];
+ $Ext = $Regs[1];
+ $Ext = strtolower($Regs[1]);
}
- $Ext = strtolower($Regs[1]);
-
if ($Ext == '' || ! isset($FileExtensionToMimeType[$Ext]))
return;