Make WordPress Core

Ticket #22813: 22813.diff

File 22813.diff, 833 bytes (added by jamescollins, 11 years ago)
  • wp-includes/formatting.php

     
    841841 */
    842842function sanitize_file_name( $filename ) {
    843843        $filename_raw = $filename;
    844         $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0));
     844        $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "+", chr(0));
    845845        $special_chars = apply_filters('sanitize_file_name_chars', $special_chars, $filename_raw);
    846846        $filename = str_replace($special_chars, '', $filename);
    847847        $filename = preg_replace('/[\s-]+/', '-', $filename);