[wp-trac] Re: [WordPress Trac] #9416: Better file name sanitization for wp_unique_filename

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 28 13:22:34 GMT 2009


#9416: Better file name sanitization for wp_unique_filename
-------------------------+--------------------------------------------------
 Reporter:  sivel        |       Owner:  sivel                                     
     Type:  enhancement  |      Status:  assigned                                  
 Priority:  normal       |   Milestone:  2.8                                       
Component:  Upload       |     Version:  2.7.1                                     
 Severity:  normal       |    Keywords:  has-patch early dev-feedback needs-testing
-------------------------+--------------------------------------------------

Comment(by hakre):

 Last patch looks good to me. If you want to handle strtolower properly for
 7bit ascii chars (I assume that _is_ safe), checkout the split_utf8()
 function I used in a patch for utf8 css classnames. you can strtolower all
 single-byte squences (= ascii 7bit) with ease with that function #8446 /
 [http://core.trac.wordpress.org/attachment/ticket/8446/8446-valid-utf8
 -classnames-generation.patch 8446-valid-utf8-classnames-generation.patch].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9416#comment:32>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list