Changeset 42224
- Timestamp:
- 11/24/2017 03:04:35 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r42217 r42224 625 625 626 626 if ( empty( $filename ) || '.' == $filename || '/' == $filename || '\\' == $filename ) { 627 $filename = time();627 $filename = uniqid(); 628 628 } 629 629 … … 1467 1467 if ( ! $method ) { 1468 1468 1469 $temp_file_name = $context . 'temp-write-test-' . time();1469 $temp_file_name = $context . 'temp-write-test-' . str_replace( '.', '-', uniqid( '', true ) ); 1470 1470 $temp_handle = @fopen($temp_file_name, 'w'); 1471 1471 if ( $temp_handle ) {
Note: See TracChangeset
for help on using the changeset viewer.