WordPress.org

Make WordPress Core

Changeset 12072


Ignore:
Timestamp:
10/20/09 18:52:37 (4 years ago)
Author:
ryan
Message:

Strip nulls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r12027 r12072  
    601601function sanitize_file_name( $filename ) { 
    602602    $filename_raw = $filename; 
    603     $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}"); 
     603    $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", chr(0)); 
    604604    $special_chars = apply_filters('sanitize_file_name_chars', $special_chars, $filename_raw); 
    605605    $filename = str_replace($special_chars, '', $filename); 
Note: See TracChangeset for help on using the changeset viewer.