Ticket #5984: 5984.wp-content_tmp.diff
File 5984.wp-content_tmp.diff, 621 bytes (added by , 17 years ago) |
---|
-
wp-admin/includes/file.php
182 182 if( ! $url ) 183 183 return false; 184 184 185 $tmpfname = tempnam( '/tmp', 'wpupdate');185 $tmpfname = tempnam(ABSPATH . 'wp-content/tmp', 'wpupdate'); 186 186 if( ! $tmpfname ) 187 187 return false; 188 188 … … 288 288 } 289 289 290 290 function get_filesystem_method() { 291 $tempFile = tempnam( '/tmp', 'WPU');291 $tempFile = tempnam(ABSPATH . 'wp-content/tmp', 'WPU'); 292 292 293 293 if ( getmyuid() == fileowner($tempFile) ) { 294 294 unlink($tempFile);