WordPress.org

Make WordPress Core

Changeset 8192


Ignore:
Timestamp:
06/25/2008 04:45:04 PM (13 years ago)
Author:
ryan
Message:

Image sideloader fix from noel. see #6813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r8095 r8192  
    286286
    287287    $filename = wp_unique_filename( $uploads['path'], $file['name'], $unique_filename_callback );
    288 
     288   
     289    // Strip the query strings.
     290    $filename = str_replace('?','-', $filename);
     291    $filename = str_replace('&','-', $filename);
     292   
    289293    // Move the file to the uploads dir
    290294    $new_file = $uploads['path'] . "/$filename";
Note: See TracChangeset for help on using the changeset viewer.