WordPress.org

Make WordPress Core

Changeset 38538


Ignore:
Timestamp:
09/07/16 13:54:57 (14 months ago)
Author:
jeremyfelt
Message:

Media: Sanitize upload filename.

File:
1 edited

Legend:

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

    r38468 r38538  
    290290    $type = $file['type']; 
    291291    $file = $file['file']; 
    292     $title = $basename; 
     292    $title = sanitize_title( $basename ); 
    293293    $content = ''; 
    294294    $excerpt = ''; 
Note: See TracChangeset for help on using the changeset viewer.