WordPress.org

Make WordPress Core

Ticket #16226: 16226.patch

File 16226.patch, 713 bytes (added by mordauk, 5 years ago)
  • src/wp-includes/formatting.php

     
    10691069 */
    10701070function sanitize_file_name( $filename ) {
    10711071        $filename_raw = $filename;
    1072         $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0));
     1072        $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", chr(0));
    10731073        /**
    10741074         * Filter the list of characters to remove from a filename.
    10751075         *