- partially reviewed #1361;

This commit is contained in:
Mykyta Synelnikov
2023-11-29 19:51:05 +02:00
parent ea29de63cc
commit ceeef9500d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 );