b9a7ab587100390f2a6f2d55071d8b30613a079b
[pkgsrc.git] / mail / squirrelmail / patches / patch-ak
1 $NetBSD: patch-ak,v 1.1 2010/03/04 16:00:37 taca Exp $
2
3 --- functions/attachment_common.php.orig        2009-07-29 10:35:45.000000000 +0900
4 +++ functions/attachment_common.php
5 @@ -205,10 +205,9 @@ function attachment_common_octet_stream(
6  
7      $Ext = '';
8      if (is_array($Regs) && isset($Regs[1])) {
9 -       $Ext = $Regs[1];
10 +        $Ext = $Regs[1];
11 +        $Ext = strtolower($Regs[1]);
12      }
13 -    
14 -    $Ext = strtolower($Regs[1]);
15  
16      if ($Ext == '' || ! isset($FileExtensionToMimeType[$Ext]))
17          return;