[wp-trac] [WordPress Trac] #8830: wp_mkdir_p doesn't work with safe mode enabled

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 13 20:26:27 UTC 2010


#8830: wp_mkdir_p doesn't work with safe mode enabled
----------------------------+-----------------------------------------------
 Reporter:  remi            |        Type:  defect (bug)
   Status:  new             |    Priority:  normal      
Milestone:  Future Release  |   Component:  Filesystem  
  Version:  2.7             |    Severity:  normal      
 Keywords:  needs-patch     |  
----------------------------+-----------------------------------------------

Comment(by ryan):

 Replying to [comment:10 dd32]:
 > perhaps this should be added instead:
 > {{{
 > $target = untrailingslashit($target);
 > if ( empty($target) )
 >   $target = '/';
 > }}}

 Sounds good.

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


More information about the wp-trac mailing list