WordPress.org

Make WordPress Core

Ticket #33053: file.php.patch

File file.php.patch, 503 bytes (added by Hyperopic, 5 years ago)
  • wp-admin/includes/file.php

     
    454454        if ( ! $url )
    455455                return new WP_Error('http_no_url', __('Invalid URL Provided.'));
    456456
    457         $tmpfname = wp_tempnam($url);
     457        $tmpfname = wp_tempnam( parse_url( $url, PHP_URL_PATH ) );
    458458        if ( ! $tmpfname )
    459459                return new WP_Error('http_no_file', __('Could not create Temporary file.'));
    460460