[wp-trac] [WordPress Trac] #57516: WP_Filesystem_*::dirlist() may create invalid path

WordPress Trac noreply at wordpress.org
Fri Feb 17 00:12:21 UTC 2023


#57516: WP_Filesystem_*::dirlist() may create invalid path
----------------------------+---------------------
 Reporter:  afragen         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  6.2
Component:  Filesystem API  |     Version:  2.5
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [55354]: Filesystem API: Use trailingslashit( $path ) instead of $path
 . '/'. Fixes a warning when $path already ends with a slash.

 Props: costdev, afragen, mukesh27.
 Fixes: #57516.

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


More information about the wp-trac mailing list