Ticket #16226: Add plus to special chars.diff
File Add plus to special chars.diff, 833 bytes (added by , 13 years ago) |
---|
-
wp-includes/formatting.php
681 681 */ 682 682 function sanitize_file_name( $filename ) { 683 683 $filename_raw = $filename; 684 $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0));684 $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", chr(0)); 685 685 $special_chars = apply_filters('sanitize_file_name_chars', $special_chars, $filename_raw); 686 686 $filename = str_replace($special_chars, '', $filename); 687 687 $filename = preg_replace('/[\s-]+/', '-', $filename);