Make WordPress Core

Ticket #33999: 33999.patch

File 33999.patch, 450 bytes (added by ocean90, 8 years ago)
  • src/wp-admin/includes/file.php

     
    168168                $dir = get_temp_dir();
    169169        }
    170170
    171         if ( empty( $filename ) || '.' == $filename || '/' == $filename ) {
     171        if ( empty( $filename ) || '.' == $filename || '/' == $filename || '\\' == $filename ) {
    172172                $filename = time();
    173173        }
    174174