Make WordPress Core

Ticket #55109: 55109.diff

File 55109.diff, 544 bytes (added by azouamauriac, 3 years ago)
  • src/wp-admin/includes/file.php

     
    11981198                if ( $tmpfname_disposition && is_string( $tmpfname_disposition )
    11991199                        && ( 0 === validate_file( $tmpfname_disposition ) )
    12001200                ) {
     1201                        $tmpfname_disposition = dirname( $tmpfname ) . '/' . $tmpfname_disposition;     
    12011202                        if ( rename( $tmpfname, $tmpfname_disposition ) ) {
    12021203                                $tmpfname = $tmpfname_disposition;
    12031204                        }