[wp-trac] [WordPress Trac] #13659: Incorrect permissions created by wp_mkdir_p() when safe mode is used

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 1 08:01:12 UTC 2010


#13659: Incorrect permissions created by wp_mkdir_p() when safe mode is used
--------------------------+-------------------------------------------------
 Reporter:  cgrenier      |       Owner:                
     Type:  defect (bug)  |      Status:  new           
 Priority:  normal        |   Milestone:  Future Release
Component:  Upload        |     Version:  2.9.2         
 Severity:  normal        |    Keywords:                
--------------------------+-------------------------------------------------
Changes (by dd32):

  * version:  => 2.9.2
  * component:  General => Upload
  * milestone:  Unassigned => Future Release


Comment:

 > For what it's worth, I'm pretty sure wp_mkdir_p() should be deprecated
 in favor of the WP_Filesystem API.

 Unfortunately thats impossible. (safe mode should be deprecated instead
 :P, which luckely, it is)

 !WordPress uploads write directly to the filesystem, asking for
 username/password every time would be over the top for simply uploading
 files.

 This sounds like a PHP bug unfortunately, cgrenier, What versions of PHP
 are affected by this? Calling chmod shouldnt cause all permissions to be
 lost in the event that a security layer prevents it.. Shouldnt.

 Setting the component to Upload, due to that being where this function is
 primarily used.

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


More information about the wp-trac mailing list