src/wp-admin/includes/class-ftp.php 1 location
|
@@ 168-168 (lines=1) @@
|
| 165 |
|
$is_windows = ($this->OS_remote == FTP_OS_Windows); |
| 166 |
|
if ($is_windows && preg_match("/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/",$line,$lucifer)) { |
| 167 |
|
$b = array(); |
| 168 |
|
if ($lucifer[3]<70) { $lucifer[3]+=2000; } else { $lucifer[3]+=1900; } // 4digit year fix |
| 169 |
|
$b['isdir'] = ($lucifer[7]=="<DIR>"); |
| 170 |
|
if ( $b['isdir'] ) |
| 171 |
|
$b['type'] = 'd'; |
src/wp-admin/includes/class-wp-filesystem-ftpext.php 1 location
|
@@ 475-478 (lines=4) @@
|
| 472 |
|
|
| 473 |
|
if ( $is_windows && preg_match('/([0-9]{2})-([0-9]{2})-([0-9]{2}) +([0-9]{2}):([0-9]{2})(AM|PM) +([0-9]+|<DIR>) +(.+)/', $line, $lucifer) ) { |
| 474 |
|
$b = array(); |
| 475 |
|
if ( $lucifer[3] < 70 ) |
| 476 |
|
$lucifer[3] +=2000; |
| 477 |
|
else |
| 478 |
|
$lucifer[3] += 1900; // 4digit year fix |
| 479 |
|
$b['isdir'] = ( $lucifer[7] == '<DIR>'); |
| 480 |
|
if ( $b['isdir'] ) |
| 481 |
|
$b['type'] = 'd'; |