Changeset 12072 for trunk/wp-includes/formatting.php
- Timestamp:
- 10/20/2009 06:52:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r12027 r12072 601 601 function sanitize_file_name( $filename ) { 602 602 $filename_raw = $filename; 603 $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}" );603 $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0)); 604 604 $special_chars = apply_filters('sanitize_file_name_chars', $special_chars, $filename_raw); 605 605 $filename = str_replace($special_chars, '', $filename);
Note: See TracChangeset
for help on using the changeset viewer.