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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 20 23:42:57 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:  needs-patch
-------------------------+--------------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:4 ryan]:
 > Talked to sivel in IRC about adding santiize_filename() that just
 removes some special chars, trims trailing and leading dots, and replaces
 spaces with underscores.

 I can understand leading dots, but why the rest? why does this need to be
 "sanitized" in the first place? Does'nt it get url encoded before landing
 into the url? I mean, as long as no two files have the same name, we're
 fine no?

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


More information about the wp-trac mailing list