mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-30 02:28:31 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
1b90375231
@ -648,16 +648,6 @@ class SFTP extends SSH2
|
||||
$this->canonicalize_paths = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable arbitrary length packets
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
function enableArbitraryLengthPackets()
|
||||
{
|
||||
$this->allow_arbitrary_length_packets = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable path canonicalization
|
||||
*
|
||||
@ -668,6 +658,26 @@ class SFTP extends SSH2
|
||||
$this->canonicalize_paths = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable arbitrary length packets
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function enableArbitraryLengthPackets()
|
||||
{
|
||||
$this->allow_arbitrary_length_packets = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable arbitrary length packets
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function disableArbitraryLengthPackets()
|
||||
{
|
||||
$this->allow_arbitrary_length_packets = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current directory name
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user