Make WordPress Core


Ignore:
Timestamp:
06/09/2015 03:54:49 AM (10 years ago)
Author:
dd32
Message:

WP_HTTP: ensure that the temporary file is created within the temporary directly when stream is specified without a filename parameter.
Fixes #32549

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-http.php

    r32650 r32712  
    214214         */
    215215        if ( $r['stream']  && empty( $r['filename'] ) ) {
    216             $r['filename'] = wp_unique_filename( get_temp_dir(), basename( $url ) );
     216            $r['filename'] = get_temp_dir() . wp_unique_filename( get_temp_dir(), basename( $url ) );
    217217        }
    218218
Note: See TracChangeset for help on using the changeset viewer.