Skip to content

Commit

Permalink
SFTP: digit only filenames were converted to integers by php
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Mar 9, 2021
1 parent b2b867f commit a45ccba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Net/SFTP.php
Expand Up @@ -1083,7 +1083,7 @@ function _list($dir, $raw = true)
uasort($contents, array(&$this, '_comparator'));
}

return $raw ? $contents : array_keys($contents);
return $raw ? $contents : array_map('strval', array_keys($contents));
}

/**
Expand Down

1 comment on commit a45ccba

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1623

Please sign in to comment.