mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- partially reviewed #1361;
This commit is contained in:
@@ -1280,7 +1280,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
|
||||
//move temporary file from temp directory to the correct user directory
|
||||
$temp_file_path = UM()->uploader()->get_core_temp_dir() . DIRECTORY_SEPARATOR . $filename;
|
||||
if ( file_exists( $temp_file_path ) ) {
|
||||
$extra_hash = hash( 'crc32b', current_time( 'timestamp' ) );
|
||||
$extra_hash = hash( 'crc32b', time() );
|
||||
|
||||
if ( strpos( $filename , 'stream_photo_' ) !== false ) {
|
||||
$new_filename = str_replace("stream_photo_","stream_photo_{$extra_hash}_", $filename );
|
||||
|
||||
Reference in New Issue
Block a user