diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 4e912098..aaa8d71b 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1067,6 +1067,7 @@ class Net_SFTP extends Net_SSH2 } if ($dir == end($dirs)) { $temp[$dir] = $value; + break; } $temp = &$temp[$dir]; }