[wp-trac] Re: [WordPress Trac] #6509: swfupload problems

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 2 17:12:09 GMT 2008


#6509: swfupload problems
----------------------+-----------------------------------------------------
 Reporter:  SteveAgl  |        Owner:  anonymous
     Type:  defect    |       Status:  new      
 Priority:  high      |    Milestone:  2.5.1    
Component:  TinyMCE   |      Version:  2.5      
 Severity:  normal    |   Resolution:           
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by SteveAgl):

 I checked the old ticket tah solved the same problem state here as #2 in
 late 2006 it was #2190 and that time changest [3501] solved the problem,
 thias was keep in new files function.php that subsittute the old admin-
 function.php where that code was and is used:

         // Set correct file permissions
         $stat = @ stat( dirname( $new_file ) );
         $perms = $stat['mode'] & 0007777;
         $perms = $perms & 0000666;
         @ chmod( $new_file, $perms );

 In media.php I've found:

         // Set correct file permissions
         $stat = stat( dirname( $destfilename ));
         $perms = $stat['mode'] & 0000666; //same permissions as parent
 folder, strip off the executable bits
         @ chmod( $destfilename, $perms );

 That looks like it ognore se S flag or I'm wrong?  maybe having same code
 as in function.php will solve the problem? No it dont'... i tried... but..
 i feel the problem is around there.

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


More information about the wp-trac mailing list