From 24423ce112e449c91d0fe2cf58e2a1e6460f728c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 16 Mar 2012 16:34:10 +0100 Subject: [PATCH] File extension check is now case-insensitive Fixes #527 --- wcfsetup/install/files/lib/system/upload/UploadFile.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/upload/UploadFile.class.php b/wcfsetup/install/files/lib/system/upload/UploadFile.class.php index 7a0158818d..d3e05352d8 100644 --- a/wcfsetup/install/files/lib/system/upload/UploadFile.class.php +++ b/wcfsetup/install/files/lib/system/upload/UploadFile.class.php @@ -82,7 +82,7 @@ class UploadFile { */ public function getFileExtension() { if (($position = StringUtil::lastIndexOf($this->getFilename(), '.')) !== false) { - return StringUtil::substring($this->getFilename(), $position + 1); + return StringUtil::toLowerCase(StringUtil::substring($this->getFilename(), $position + 1)); } return ''; -- 2.20.1