blob: b9a7ab587100390f2a6f2d55071d8b30613a079b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ak,v 1.1 2010/03/04 16:00:37 taca Exp $
--- functions/attachment_common.php.orig 2009-07-29 10:35:45.000000000 +0900
+++ functions/attachment_common.php
@@ -205,10 +205,9 @@ function attachment_common_octet_stream(
$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;
|