mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#1176 파일 첨부 대소문자 구분 문제 해결
This commit is contained in:
parent
3fb8847d58
commit
bd917c3d01
1 changed files with 2 additions and 2 deletions
|
|
@ -634,10 +634,10 @@ class fileController extends file
|
|||
$ext = array();
|
||||
foreach($filetypes as $item) {
|
||||
$item = explode('.', $item);
|
||||
$ext[] = $item[1];
|
||||
$ext[] = strtolower($item[1]);
|
||||
}
|
||||
$uploaded_ext = explode('.', $file_info['name']);
|
||||
$uploaded_ext = array_pop($uploaded_ext);
|
||||
$uploaded_ext = strtolower(array_pop($uploaded_ext));
|
||||
|
||||
if(!in_array($uploaded_ext, $ext))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue