mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Merge pull request #221 from jabourne/patch-1
Update um-file-upload.php
This commit is contained in:
@@ -38,7 +38,7 @@ if(isset($_FILES[$id]['name'])) {
|
||||
if(!is_array($_FILES[$id]['name'])) {
|
||||
|
||||
$temp = $_FILES[$id]["tmp_name"];
|
||||
$file = $_FILES[$id]["name"];
|
||||
$file = $id."-".$_FILES[$id]["name"];
|
||||
$file = sanitize_file_name($file);
|
||||
$extension = strtolower( pathinfo($file, PATHINFO_EXTENSION) );
|
||||
|
||||
@@ -57,4 +57,4 @@ if(isset($_FILES[$id]['name'])) {
|
||||
} else {
|
||||
$ret['error'] = __('A theme or plugin compatibility issue','ultimatemember');
|
||||
}
|
||||
echo json_encode($ret);
|
||||
echo json_encode($ret);
|
||||
|
||||
Reference in New Issue
Block a user