[wp-trac] [WordPress Trac] #57242: Remove redundant dot in sanitize_file_name function

WordPress Trac noreply at wordpress.org
Fri Feb 3 12:46:34 UTC 2023


#57242: Remove redundant dot in sanitize_file_name function
---------------------------------------------+-----------------------
 Reporter:  ArtZ91                           |       Owner:  audrasjb
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.2
Component:  Formatting                       |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------
Changes (by audrasjb):

 * owner:  (none) => audrasjb
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55209" 55209]:
 {{{
 #!CommitTicketReference repository="" revision="55209"
 Media: Replace consecutive periods in `sanitize_file_name()`.

 On some servers, consecutive periods in a filename can cause a 403
 Forbidden response.
 This changeset replaces consecutive periods with a single period, and adds
 related unit tests.

 Props ArtZ91, costdev, SergeyBiryukov, arthurshlain, mukesh27.
 Fixes #57242.
 }}}

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


More information about the wp-trac mailing list