mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
Fix upload file extension's case sensitive issue
This commit is contained in:
@@ -24,7 +24,7 @@ if(isset($_FILES[$id]['name'])) {
|
||||
$temp = $_FILES[$id]["tmp_name"];
|
||||
$file = $_FILES[$id]["name"];
|
||||
$file = sanitize_file_name($file);
|
||||
$extension = pathinfo($file, PATHINFO_EXTENSION);
|
||||
$extension = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
|
||||
|
||||
$error = $ultimatemember->files->check_file_upload( $temp, $extension, $id );
|
||||
if ( $error ){
|
||||
|
||||
@@ -24,7 +24,7 @@ if(isset($_FILES[$id]['name'])) {
|
||||
$temp = $_FILES[$id]["tmp_name"];
|
||||
$file = $_FILES[$id]["name"];
|
||||
$file = sanitize_file_name($file);
|
||||
$ext = pathinfo($file, PATHINFO_EXTENSION);
|
||||
$ext = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
|
||||
|
||||
$error = $ultimatemember->files->check_image_upload( $temp, $id );
|
||||
if ( $error ){
|
||||
|
||||
Reference in New Issue
Block a user