Make WordPress Core


Ignore:
Timestamp:
09/07/2016 01:54:57 PM (8 years 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.