From 6614ddaf816b74017c8ef11ac3a1b5658bcfb6be Mon Sep 17 00:00:00 2001 From: syo68k Date: Mon, 26 Jul 2010 14:22:14 +0000 Subject: [PATCH] =?utf8?q?=E6=8B=A1=E5=BC=B5=E5=AD=90=E3=81=8C=E5=A4=A7?= =?utf8?q?=E6=96=87=E5=AD=97=E3=81=AE=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB?= =?utf8?q?=E3=82=92=E5=87=A6=E7=90=86=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= =?utf8?q?=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@623 e39ad16e-3079-482e-bb30-4b4d378143b6 --- Tween/Connection/TwitPic.vb | 4 ++-- Tween/Connection/TwitVideo.vb | 8 ++++---- Tween/Connection/imgly.vb | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Tween/Connection/TwitPic.vb b/Tween/Connection/TwitPic.vb index 5d0ddb2b..ad99282f 100644 --- a/Tween/Connection/TwitPic.vb +++ b/Tween/Connection/TwitPic.vb @@ -54,7 +54,7 @@ Public Class TwitPic End Function Public Function CheckValidExtension(ByVal ext As String) As Boolean - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return True End If Return False @@ -65,7 +65,7 @@ Public Class TwitPic End Function Public Function GetFileType(ByVal ext As String) As UploadFileType - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return UploadFileType.Picture End If Return UploadFileType.Invalid diff --git a/Tween/Connection/TwitVideo.vb b/Tween/Connection/TwitVideo.vb index d730cb43..4844539f 100644 --- a/Tween/Connection/TwitVideo.vb +++ b/Tween/Connection/TwitVideo.vb @@ -68,20 +68,20 @@ Public Class TwitVideo End Function Public Function CheckValidExtension(ByVal ext As String) As Boolean - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return True End If - If Array.IndexOf(multimediaExt, ext) > -1 Then + If Array.IndexOf(multimediaExt, ext.ToLower) > -1 Then Return True End If Return False End Function Public Function GetFileType(ByVal ext As String) As UploadFileType - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return UploadFileType.Picture End If - If Array.IndexOf(multimediaExt, ext) > -1 Then + If Array.IndexOf(multimediaExt, ext.ToLower) > -1 Then Return UploadFileType.MultiMedia End If Return UploadFileType.Invalid diff --git a/Tween/Connection/imgly.vb b/Tween/Connection/imgly.vb index 09d74391..e1ec2b7b 100644 --- a/Tween/Connection/imgly.vb +++ b/Tween/Connection/imgly.vb @@ -52,7 +52,7 @@ Public Class imgly End Function Public Function CheckValidExtension(ByVal ext As String) As Boolean - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return True End If Return False @@ -63,7 +63,7 @@ Public Class imgly End Function Public Function GetFileType(ByVal ext As String) As UploadFileType - If Array.IndexOf(pictureExt, ext) > -1 Then + If Array.IndexOf(pictureExt, ext.ToLower) > -1 Then Return UploadFileType.Picture End If Return UploadFileType.Invalid -- 2.11.0