mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-04 21:08:28 +00:00
SFTP: convert filenames to strings
This commit is contained in:
parent
3111903089
commit
da54eb613b
@ -970,6 +970,8 @@ class Net_SFTP extends Net_SSH2
|
|||||||
*/
|
*/
|
||||||
function _realpath($path)
|
function _realpath($path)
|
||||||
{
|
{
|
||||||
|
$path = (string) $path;
|
||||||
|
|
||||||
if (!$this->canonicalize_paths) {
|
if (!$this->canonicalize_paths) {
|
||||||
if ($this->pwd === true) {
|
if ($this->pwd === true) {
|
||||||
return '.';
|
return '.';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user