[wp-trac] Re: [WordPress Trac] #7118: New media uploader uploads files to the wp-admin directory.

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 30 16:09:18 GMT 2008


#7118: New media uploader uploads files to the wp-admin directory.
-----------------------------------------------+----------------------------
 Reporter:  jleuze                             |        Owner:  ryan 
     Type:  defect                             |       Status:  new  
 Priority:  normal                             |    Milestone:  2.5.2
Component:  General                            |      Version:  2.5.1
 Severity:  critical                           |   Resolution:       
 Keywords:  uploader, wp-admin, wrong, folder  |  
-----------------------------------------------+----------------------------
Comment (by Otto42):

 Replying to [comment:5 jleuze]:
 > What do I have to edit to accomplish this?

 wp-includes/functions.php, around line 1054.

 In the function path_is_absolute, there's these two lines:
 {{{
 if ( realpath($path) == $path )
         return true;
 }}}

 Remove or comment them out. See if that changes anything.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7118#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list