[wp-trac] [WordPress Trac] #50855: sanitize_file_name function not working as expected if there is '%20' in filename

WordPress Trac noreply at wordpress.org
Tue Jun 8 22:19:29 UTC 2021


#50855: sanitize_file_name function not working as expected if there is '%20' in
filename
-------------------------------------------------+-------------------------
 Reporter:  dishitpala                           |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.8
Component:  Formatting                           |     Version:  5.4.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-screenshots needs-     |     Focuses:
  unit-tests                                     |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  has-patch has-screenshots commit => has-patch has-screenshots
     needs-unit-tests


Comment:

 I'd love to see a unit test or two added here to demonstrate the incorrect
 behavior before, and confirm the correct behavior after, and to prevent
 this from happening again going forward.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50855#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list