WordPress.org

Make WordPress Core

Ticket #12201: file.php.2.diff

File file.php.2.diff, 460 bytes (added by edward mindreantre, 5 years ago)

Diff of file.php from v2.9.1

Line 
1670c670
2<       if( ! $method && function_exists('getmyuid') && function_exists('fileowner') ){
3---
4>       if( ! $method && (function_exists('getmyuid') || function_exists('posix_getuid')) && function_exists('fileowner') ){
5677c677,680
6<                       if ( getmyuid() == @fileowner($temp_file_name) )
7---
8>                       $myuid = @getmyuid();
9>                       if ($myuid === null)
10>                               $myuid = @posix_getuid();
11>                       if ( $myuid == @fileowner($temp_file_name) )
12710c713
13<               
14---
15>
16713c716
17<               
18---
19>