SFTP: convert filenames to strings

This commit is contained in:
terrafrost 2025-01-16 07:31:17 -06:00
parent 3111903089
commit da54eb613b

View File

@ -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 '.';