Make WordPress Core


Ignore:
Timestamp:
07/02/2008 11:07:56 PM (16 years ago)
Author:
mdawaffe
Message:

crazyhorse: merge with log:trunk@8151:8240

File:
1 edited

Legend:

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

    r8103 r8242  
    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.