From: Alexander Ebert Date: Fri, 16 Mar 2012 15:34:10 +0000 (+0100) Subject: File extension check is now case-insensitive X-Git-Tag: 2.0.0_Beta_1~1212 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=24423ce112e449c91d0fe2cf58e2a1e6460f728c;p=GitHub%2FWoltLab%2FWCF.git File extension check is now case-insensitive Fixes #527 --- 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 '';