[wp-trac] [WordPress Trac] #22363: Accents in attachment filenames should be sanitized

WordPress Trac noreply at wordpress.org
Thu Nov 28 03:56:36 UTC 2013


#22363: Accents in attachment filenames should be sanitized
-------------------------------------+------------------
 Reporter:  tar.gz                   |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.8
Component:  Upload                   |     Version:  3.4
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by p_enrique):

 @cristovaov: You can't make a plugin out of a patch that modifies core WP
 files. In this case, my patch modifies the function `sanitize_file_name()`
 in `/wp-includes/formatting.php`. If you put the code in a plugin, you'll
 get precisely that error message since the function is already declared in
 the file I mentioned. If you want to experiment, you can try the SVN
 install as described in the
 [http://make.wordpress.org/core/handbook/installing-a-version-control-
 system/ Contributor Handbook] and then
 [http://make.wordpress.org/core/handbook/working-with-patches/ applying
 the patch]. I'd be grateful for any feedback about my patch.

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


More information about the wp-trac mailing list