[wp-trac] [WordPress Trac] #12866: tmpfile() may use non-writable directory causing upgrades to fail

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 6 11:20:54 UTC 2010


#12866: tmpfile() may use non-writable directory causing upgrades to fail
-----------------------------+----------------------------------------------
 Reporter:  dd32             |        Owner:  dd32  
     Type:  defect (bug)     |       Status:  closed
 Priority:  normal           |    Milestone:  3.0   
Component:  Upgrade/Install  |      Version:        
 Severity:  normal           |   Resolution:  fixed 
 Keywords:                   |  
-----------------------------+----------------------------------------------
Changes (by dd32):

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


Comment:

 (In [14016]) Replace use of tmpfile() with a safe get_temp_dir().
 tmpfile() may use a temporary directly which is not writable. Add static
 caching to get_temp_dir() & better protect against bad server configs.
 Fixes #12866

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


More information about the wp-trac mailing list